X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fbd5a88b24f54002c68f9989b68c9603d3bda0ee..ca64b39e0d204e76bc4a3a0281bdee9f22fe0824:/app/assets/javascripts/index/note.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/index/note.js.erb b/app/assets/javascripts/index/note.js.erb index 1f9dbe375..aa746265c 100644 --- a/app/assets/javascripts/index/note.js.erb +++ b/app/assets/javascripts/index/note.js.erb @@ -65,8 +65,8 @@ OSM.Note = function (map) { latLng = data.coordinates.split(','); if (!window.location.hash) { - OSM.route.moveListenerOff(); - map.once('moveend', OSM.route.moveListenerOn); + OSM.router.moveListenerOff(); + map.once('moveend', OSM.router.moveListenerOn); map.getZoom() > 15 ? map.panTo(latLng) : map.setView(latLng, 16); }