]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js.erb
Using HTTPS for GraphHopper
[rails.git] / app / assets / javascripts / index / notes.js.erb
index 841ae1f7bdf652096e80399782474513deb1d880..4e45cbe05238b092f88559e930fc9d01f28bb73f 100644 (file)
@@ -34,7 +34,9 @@ function initializeNotes(map) {
   });
 
   noteLayer.on('click', function(e) {
-    OSM.router.route('/note/' + e.layer.id);
+    if (e.layer.id) {
+      OSM.router.route('/note/' + e.layer.id);
+    }
   });
 
   function updateMarker(marker, feature) {