]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Document/clarify OSM.Router use
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 11363fca8ed64c40a0522e9910fe10c104280e59..928d91fe2fee5fc18d0eb637776bc4ae800a4f3b 100644 (file)
@@ -34,7 +34,7 @@ function initializeNotes(map) {
   });
 
   noteLayer.on('click', function(e) {
-    OSM.route('/browse/note/' + e.layer.id);
+    OSM.router.route('/browse/note/' + e.layer.id);
   });
 
   function updateMarker(marker, feature) {