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