Decrease new note marker opacity when zoomed out
This commit is contained in:
parent
feb7af2020
commit
5603309026
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue