[openstreetmap/openstreetmap-website] Add 'canDownloadImage' layer option (PR #5416)
Anton Khorev
notifications at github.com
Wed Dec 18 17:03:00 UTC 2024
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:

After:

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/5416 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241218/2543d603/attachment-0001.htm>
More information about the rails-dev
mailing list