From 5603309026a8c7f81ea7fd91f164c8810437e9bc Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 26 Dec 2024 01:11:39 +0300 Subject: [PATCH 1/1] Decrease new note marker opacity when zoomed out --- app/assets/javascripts/index/new_note.js | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.39.5