From: Anton Khorev Date: Wed, 25 Dec 2024 22:11:39 +0000 (+0300) Subject: Decrease new note marker opacity when zoomed out X-Git-Tag: live~18^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5603309026a8c7f81ea7fd91f164c8810437e9bc?hp=feb7af2020c488cdcb03ec11d88e9a44625c912f Decrease new note marker opacity when zoomed out --- diff --git a/app/assets/javascripts/index/new_note.js b/app/assets/javascripts/index/new_note.js index 73d6198ba..76d134ce6 100644 --- a/app/assets/javascripts/index/new_note.js +++ b/app/assets/javascripts/index/new_note.js @@ -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) {