From 9ca31c2963b8a7363132c293ecb088af3d5dc34f Mon Sep 17 00:00:00 2001 From: Francisco Dans Date: Mon, 15 Jun 2015 11:22:56 +0200 Subject: [PATCH] redraws view on show if steps are one --- lib/torque/leaflet/torque.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/torque/leaflet/torque.js b/lib/torque/leaflet/torque.js index ff05f50..9e9b0c1 100644 --- a/lib/torque/leaflet/torque.js +++ b/lib/torque/leaflet/torque.js @@ -164,6 +164,7 @@ L.TorqueLayer = L.CanvasLayer.extend({ if(!this.hidden) return this; this.hidden = false; this.play(); + this.options.steps === 1 && this.redraw(); return this; },