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