Follows #5388. Removes hardcoded layer id checks in *Share > Image*, except for one special mapnik check.
If a layer that can't be downloaded is selected, the message shows a list of available layers: Before: ![image](https://github.com/user-attachments/assets/ce67b154-f8e2-4d85-a62a-b0ff72a9e2b9) After: ![image](https://github.com/user-attachments/assets/551fdfaf-9c3e-4324-ab5c-b386f7c7a3cf) You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5416 -- Commit Summary -- * Add 'canDownloadImage' layer option * Change image download warning message to a list -- File Changes -- M app/assets/javascripts/leaflet.share.js (33) M config/layers.yml (3) M config/locales/en.yml (2) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/5416.patch https://github.com/openstreetmap/openstreetmap-website/pull/5416.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5416 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