X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/44629832dd0207d7b0f50b93f1d00b4373dd4d49..640ff57465b5288a183e1343285c1550b1a0d1a8:/app/assets/javascripts/leaflet.map.js.erb diff --git a/app/assets/javascripts/leaflet.map.js.erb b/app/assets/javascripts/leaflet.map.js.erb index bfb3685a1..f65325e37 100644 --- a/app/assets/javascripts/leaflet.map.js.erb +++ b/app/assets/javascripts/leaflet.map.js.erb @@ -222,8 +222,8 @@ L.OSM.Map = L.Map.extend({ if (!window.location.hash) { var bounds = map._objectLayer.getBounds(); if (bounds.isValid()) { - OSM.route.moveListenerOff(); - map.once('moveend', OSM.route.moveListenerOn); + OSM.router.moveListenerOff(); + map.once('moveend', OSM.router.moveListenerOn); map.fitBounds(bounds); } }