From 3b18a29883733adaf5481e0519b532a8175c36c1 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Fri, 23 May 2014 14:07:38 +0400 Subject: [PATCH] disable map animation on hash change --- leaflet-hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet-hash.js b/leaflet-hash.js index 70a1007..9bee473 100644 --- a/leaflet-hash.js +++ b/leaflet-hash.js @@ -102,7 +102,7 @@ if (parsed) { this.movingMap = true; - this.map.setView(parsed.center, parsed.zoom); + this.map.setView(parsed.center, parsed.zoom, { animate: false}); this.movingMap = false; } else {