[openstreetmap/openstreetmap-website] Create the hide note layer button when that layer is active (PR #6891)
Héctor Ochoa Ortiz
notifications at github.com
Sat Mar 14 11:55:47 UTC 2026
<!--
Please read the contributing guidelines before making a PR:
https://github.com/openstreetmap/openstreetmap-website/blob/master/CONTRIBUTING.md
Pay particular attention to the section on how to present PRs:
https://github.com/openstreetmap/openstreetmap-website/blob/master/CONTRIBUTING.md#pull-requests
-->
### Description
Would solve #867 by adding a new button to hide the note layer just below the add note button. This button would only appear when the note layer is active. A user who activated the layer by clicking the add note button would expect a button to hide it in the vicinity of where they clicked.
<img width="257" height="525" alt="image" src="https://github.com/user-attachments/assets/6a41a0ec-0ecb-42d1-ae18-d9ae2c0ba244" />
### How has this been tested?
Run locally via docker compose, open the locally hosted website in my browser.
Toggle the note layer via the layer panel, and the hide note layer button appears and disappears.
Click the add note button on the side, and the hide note layer button appears and disappears (as the note layer is activated).
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6891
-- Commit Summary --
* Create the hide note layer button when layer note is active
-- File Changes --
M app/assets/javascripts/index.js (5)
A app/assets/javascripts/leaflet.hide_notes.js (33)
M config/locales/en.yml (1)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6891.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6891.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6891
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6891 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260314/ab7ccb48/attachment.htm>
More information about the rails-dev
mailing list