X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5bd59e19368d8761a7dbaa5db0e8833174c11f36..0547bda93fe463069bcd79415dacf5b039b24733:/app/assets/javascripts/index/notes.js diff --git a/app/assets/javascripts/index/notes.js b/app/assets/javascripts/index/notes.js index 4890a2687..5d553e970 100644 --- a/app/assets/javascripts/index/notes.js +++ b/app/assets/javascripts/index/notes.js @@ -39,7 +39,8 @@ OSM.initializeNotes = function (map) { } }); - function updateMarker(marker, feature) { + function updateMarker(old_marker, feature) { + var marker = old_marker; if (marker) { marker.setIcon(noteIcons[feature.properties.status]); } else {