fixed hidden in google maps

This commit is contained in:
javi 2013-12-05 10:53:10 +01:00
parent bcee499b93
commit 2441f97aea

View File

@ -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", {