Last active
March 16, 2025 02:49
-
-
Save deton/38c7a153aaaa121cd3f859d507dbba19 to your computer and use it in GitHub Desktop.
Some Leaflet dark styles by CSS filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import folium | |
m = folium.Map(location=[35.681, 139.767], zoom_start=15) | |
m.add_css_link( | |
"leaflet-dark", | |
"https://deton.github.io/folium_tripslayer/leaflet-dark.css" | |
) | |
m.save('dark.html') | |
# leaflet-dark.css: https://dev.to/deepakdevanand/leaflet-map-dark-theme-5ej0 | |
# leaflet-dark2.css: https://gist.github.com/BrendonKoz/b1df234fe3ee388b402cd8e98f7eedbd | |
# MapLibre dark styles: https://gist.github.com/deton/0ea937bb6c1607b60ccb323a3700a70a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment