check provider gives setCartoCSS
This commit is contained in:
parent
f6a123667c
commit
7e86d58c61
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user