Decrease new note marker opacity when zoomed out

This commit is contained in:
Anton Khorev 2024-12-26 01:11:39 +03:00
parent feb7af2020
commit 5603309026

View file

@ -113,6 +113,7 @@ OSM.NewNote = function (map) {
content.find("#new-note-zoom-warning").prop("hidden", !zoomedOut);
content.find("input[type=submit]").prop("disabled", zoomedOut || withoutText);
if (newNoteMarker) newNoteMarker.setOpacity(zoomedOut ? 0.5 : 0.9);
}
page.pushstate = page.popstate = function (path) {