[openstreetmap/openstreetmap-website] Use dark map tiles in embed (PR #5519)
    Marwin Hochfelsner 
    notifications at github.com
       
    Sun Jan 19 02:31:08 UTC 2025
    
    
  
This PR
- Adds layer type switching based on a **new theme parameter** and prefers-color-scheme
- Rewrites argument extraction and application of layer and bbox
- Lints this file apparently for the first time
Doesn't touch the CSS though.
You can view, comment on, or merge this pull request online at:
  https://github.com/openstreetmap/openstreetmap-website/pull/5519
-- Commit Summary --
  * Allow map layers to specify an alternate tile set for dark mode
-- File Changes --
    M app/assets/javascripts/embed.js.erb (61)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5519.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5519.diff
-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5519
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5519 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250118/2249e83d/attachment.htm>
    
    
More information about the rails-dev
mailing list