X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6157280d19ca65b3ff00fd8c1f4dfc94fcbdb64c..a805e0b545a37b19a4162e71850bef9aba9d6628:/app/assets/javascripts/index/notes.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 4538e9968..75ca5ad50 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -72,6 +72,7 @@ function initializeNotes(map) { icon: noteIcons[feature.properties.status], opacity: 0.9 }); + marker.id = feature.properties.id; marker.addTo(noteLayer).bindPopup( createPopupContent(marker, feature.properties), popupOptions() @@ -80,6 +81,10 @@ function initializeNotes(map) { return marker; } + noteLayer.getLayerId = function(marker) { + return marker.id; + }; + var noteLoader; function loadNotes() {