Skip to content

Commit

Permalink
Decrease new note marker opacity when zoomed out
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonKhorev committed Dec 31, 2024
1 parent 5424cfe commit 9419be5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/index/new_note.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9419be5

Please sign in to comment.