[openstreetmap/openstreetmap-website] Hides the adding note option when the note layer is not active (PR #6890)

Héctor Ochoa Ortiz notifications at github.com
Sat Mar 14 11:55:37 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 not showing the adding note button unless the note layer is active.

<img width="406" height="721" alt="image" src="https://github.com/user-attachments/assets/269e7118-c571-4619-9ad5-3524b9cbb091" />
<img width="406" height="721" alt="image" src="https://github.com/user-attachments/assets/90eef023-15f8-4648-a4a8-d20901d1256f" />


### 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 add note button appears and disappears.

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/6890

-- Commit Summary --

  * Disable add note option when the note layer is not active

-- File Changes --

    M app/assets/javascripts/leaflet.note.js (6)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/6890.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6890.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6890
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6890 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260314/7676879e/attachment-0001.htm>


More information about the rails-dev mailing list