check provider gives setCartoCSS

This commit is contained in:
javi 2014-03-21 12:48:24 +01:00
parent f6a123667c
commit 7e86d58c61

View File

@ -252,7 +252,7 @@ GMapsTorqueLayer.prototype = _.extend({},
// provider options // provider options
var options = torque.common.TorqueLayer.optionsFromLayer(shader.findLayer({ name: 'Map' })); var options = torque.common.TorqueLayer.optionsFromLayer(shader.findLayer({ name: 'Map' }));
this.provider.setCartoCSS && this.provider.setCartoCSS(cartocss); this.provider && this.provider.setCartoCSS && this.provider.setCartoCSS(cartocss);
if(this.provider && this.provider.setOptions(options)) { if(this.provider && this.provider.setOptions(options)) {
this._reloadTiles(); this._reloadTiles();
} }