X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5a330c7b9dbba5039312d901fec52ed80ad73409..e418075e26d80d68e4127d3358a2d8b11dee3a13:/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); } }