[openstreetmap/openstreetmap-website] Add 'canEmbed' layer option (PR #5388)

Anton Khorev notifications at github.com
Mon Dec 9 21:51:57 UTC 2024


Check the added `canEmbed` layer option instead of `map.getMapBaseLayerId() !== "tracestracktopo"` when deciding whether *Share > HTML* should be available.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add map.getMapBaseLayer()
  * Rename 'keyid' layer option to 'keyId'
  * Add 'canEmbed' layer option

-- File Changes --

    M app/assets/javascripts/index.js (2)
    M app/assets/javascripts/leaflet.map.js (14)
    M app/assets/javascripts/leaflet.share.js (2)
    M config/layers.yml (5)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5388 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241209/6764e2ad/attachment.htm>


More information about the rails-dev mailing list