[openstreetmap/openstreetmap-website] Put map key presence in js layer definitions (PR #5918)
Marwin Hochfelsner
notifications at github.com
Thu Apr 10 19:17:35 UTC 2025
Links _key.yml_ to _layers.yml_ in the `MapLayers` module by putting a `hasKey` flag into the `LAYER_DEFINITIONS`.
This removes the need for `LAYERS_WITH_MAP_KEY` as the key button can now directly check `layer.options.hasKey`.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5918
-- Commit Summary --
* Put map key presence in js layer definitions
-- File Changes --
M app/assets/javascripts/leaflet.key.js (2)
M app/assets/javascripts/osm.js.erb (3)
M lib/map_layers.rb (4)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5918.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5918.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5918
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5918 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250410/ef5904a2/attachment.htm>
More information about the rails-dev
mailing list