diff --git a/lib/torque/gmaps/torque.js b/lib/torque/gmaps/torque.js index a82b8f3..56e52f4 100644 --- a/lib/torque/gmaps/torque.js +++ b/lib/torque/gmaps/torque.js @@ -23,6 +23,8 @@ function GMapsTorqueLayer(options) { torque.common.TorqueLayer.optionsFromCartoCSS(options.cartocss)); } + this.hidden = !this.options.visible; + this.animator = new torque.Animator(function(time) { var k = time | 0; if(self.key !== k) { @@ -71,7 +73,6 @@ GMapsTorqueLayer.prototype = _.extend({}, var self = this; this.onTileAdded = this.onTileAdded.bind(this); - this.hidden = !this.options.visible; this.options.ready = function() { self.fire("change:bounds", {