X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5bd59e19368d8761a7dbaa5db0e8833174c11f36..9657b92faddc9fa9bf765fc7de06aa0a9042e8e9:/app/assets/javascripts/index/notes.js?ds=inline 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 {