adds tilejson checking in gmaps
This commit is contained in:
parent
00e3ddfe99
commit
191e762d35
@ -25,6 +25,8 @@ function GMapsTorqueLayer(options) {
|
||||
torque.common.TorqueLayer.optionsFromCartoCSS(options.cartocss));
|
||||
}
|
||||
|
||||
if(options.tileJSON) this.options.provider = "tileJSON";
|
||||
|
||||
this.hidden = !this.options.visible;
|
||||
|
||||
this.animator = new torque.Animator(function(time) {
|
||||
@ -64,7 +66,8 @@ GMapsTorqueLayer.prototype = torque.extend({},
|
||||
providers: {
|
||||
'sql_api': torque.providers.json,
|
||||
'url_template': torque.providers.JsonArray,
|
||||
'windshaft': torque.providers.windshaft
|
||||
'windshaft': torque.providers.windshaft,
|
||||
'tileJSON': torque.providers.tileJSON
|
||||
},
|
||||
|
||||
renderers: {
|
||||
|
Loading…
Reference in New Issue
Block a user