fixed hidden in google maps
This commit is contained in:
parent
bcee499b93
commit
2441f97aea
@ -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", {
|
||||
|
Loading…
Reference in New Issue
Block a user