X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5bd59e19368d8761a7dbaa5db0e8833174c11f36..dbe84a97bf48789e0f32a185f701840fc68063bd:/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 {