diff --git a/lib/torque/gmaps/torque.js b/lib/torque/gmaps/torque.js index 2608e49..deb8deb 100644 --- a/lib/torque/gmaps/torque.js +++ b/lib/torque/gmaps/torque.js @@ -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; }, diff --git a/lib/torque/leaflet/torque.js b/lib/torque/leaflet/torque.js index ff05f50..7d2c5b7 100644 --- a/lib/torque/leaflet/torque.js +++ b/lib/torque/leaflet/torque.js @@ -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; },