adds tilejson checking in gmaps

This commit is contained in:
Francisco Dans 2015-09-22 11:50:38 +02:00
parent 00e3ddfe99
commit 191e762d35

View File

@ -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: {