Merge pull request #195 from CartoDB/showstatic

Invalidates view on show() if steps are one
This commit is contained in:
Francisco Dans 2015-06-15 14:56:58 +02:00
commit 9cf50b9864
2 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,9 @@ GMapsTorqueLayer.prototype = torque.extend({},
if(!this.hidden) return this;
this.hidden = false;
this.play();
if (this.options.steps === 1){
this.redraw();
}
return this;
},

View File

@ -164,6 +164,9 @@ L.TorqueLayer = L.CanvasLayer.extend({
if(!this.hidden) return this;
this.hidden = false;
this.play();
if (this.options.steps === 1){
this.redraw();
}
return this;
},