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/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to