[openstreetmap/openstreetmap-website] Image download with user feedback (PR #6192)
mmd
notifications at github.com
Sat Jul 19 10:33:31 UTC 2025
mmd-osm left a comment (openstreetmap/openstreetmap-website#6192)
Instead of hardcoding formats, I have added a new attribute "formats" to layers.yml, and disable non-supported formats in the select options:
<img width="138" height="204" alt="image" src="https://github.com/user-attachments/assets/e5a5639e-69f5-45d2-aacc-96af327a91cf" />
Then there's a bit of logic to select a non-disabled option, after options have been updated. This is relevant when switching from Mapnik to Thunderforest, while having a non-PNG format still selected.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6192#issuecomment-3092250149
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6192/c3092250149 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250719/b0bdd552/attachment-0001.htm>
More information about the rails-dev
mailing list