[openstreetmap/openstreetmap-website] Manage map tiles dark mode with leaflet-osm plugin (PR #4777)
Anton Khorev
notifications at github.com
Thu May 9 14:32:51 UTC 2024
I guess #4769 meant "how about we use dark tile variants when available". If [Transport Dark](https://www.thunderforest.com/maps/transport-dark/) is approved to be used on the osm website, we can switch to it in dark mode when "Transport Map" is selected.
Here's how it can work together with prefers-color-scheme switching from #4761:




Layers without alternative dark tiles get dimmed, layers with switch to their alternative tiles.
I modified leaflet-osm in this repository directly. Is https://github.com/openstreetmap/leaflet-osm maintained? Its [npm package](https://www.npmjs.com/package/leaflet-osm) was last updated years ago.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4777
-- Commit Summary --
* Manage map tiles dark mode with leaflet-osm plugin
-- File Changes --
M app/assets/javascripts/application.js (2)
M app/assets/stylesheets/common.scss (1)
M vendor/assets/leaflet/leaflet.osm.js (60)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4777.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4777.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4777
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4777 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240509/6919f96f/attachment.htm>
More information about the rails-dev
mailing list