X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a805e0b545a37b19a4162e71850bef9aba9d6628..6f444fc99e6247bc0300402c87f7d08470a9c8f9:/app/assets/javascripts/router.js diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 606308982..fbad1e28c 100644 --- a/app/assets/javascripts/router.js +++ b/app/assets/javascripts/router.js @@ -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); });