Fix editing notes outside of view, closes #57
This commit is contained in:
parent
afcaa2cf58
commit
6ecb8dbe8e
1 changed files with 2 additions and 2 deletions
|
@ -35,10 +35,10 @@ OSM.Note = function (map) {
|
|||
marker = noteLayer.getLayer(marker);
|
||||
if (feature.properties.status == "hidden") {
|
||||
noteLayer.removeLayer(marker);
|
||||
} else {
|
||||
} else if (marker) {
|
||||
marker.setIcon(noteIcons[feature.properties.status]);
|
||||
page.load();
|
||||
}
|
||||
page.load();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue