]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/router.js
Prevent empty search
[rails.git] / app / assets / javascripts / router.js
index 60630898297a67b31222ba43b04665eb11e56f72..fbad1e28c1695f90d37b5a40bef573f491e1afd1 100644 (file)
@@ -88,7 +88,7 @@ OSM.Router = function(map, rts) {
       currentRoute = routes.recognize(currentPath);
       currentRoute.run('popstate', currentPath);
       var state = e.originalEvent.state;
-      map.setView(state.center, state.zoom);
+      map.setView(state.center, state.zoom, {animate: false});
       map.updateLayers(state.layers);
     });