]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/leaflet.map.js.erb
Document/clarify OSM.Router use
[rails.git] / app / assets / javascripts / leaflet.map.js.erb
index bfb3685a1750e9fd772707c2922b5646c497426d..f65325e37b94cffbd580afa25e1f647409918975 100644 (file)
@@ -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);
           }
         }