if (marker) {
marker.setIcon(noteIcons[feature.properties.status]);
} else {
marker = L.marker(feature.geometry.coordinates.reverse(), {
icon: noteIcons[feature.properties.status],
if (marker) {
marker.setIcon(noteIcons[feature.properties.status]);
} else {
marker = L.marker(feature.geometry.coordinates.reverse(), {
icon: noteIcons[feature.properties.status],