-
Notifications
You must be signed in to change notification settings - Fork 919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manage map tiles dark mode with leaflet-osm plugin #4777
base: master
Are you sure you want to change the base?
Conversation
6a3f718
to
9a1d005
Compare
Added context menu options similar to "Map Brightness" dropdown in https://userstyles.world/style/15596/openstreetmap-dark-theme |
|
Yes. It's had updates in the last 8 months, when we added or removed featured layers. |
Specifically I have maintainer access there ;-) |
9a1d005
to
82f7386
Compare
Supposedly not when layers are removed because |
54abed4
to
fa72ace
Compare
fa72ace
to
52a2769
Compare
Great work! I almost feel bad for missing this.
What is currently planned for this? Just persistence via |
I guess #4769 meant "how about we use dark tile variants when available". If 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 was last updated years ago.