Skip to content

Commit

Permalink
Fix openfreemap positron style (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Oct 26, 2024
1 parent b96d959 commit ed7ea1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions leafmap/maplibregl.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def __init__(
elif style.lower() in carto_basemaps:
style = construct_carto_basemap_url(style.lower())
elif style.lower() in openfreemap_basemaps:
if style == "positron2":
style = "positron"
style = f"https://tiles.openfreemap.org/styles/{style.lower()}"
elif style == "demotiles":
style = "https://demotiles.maplibre.org/style.json"
Expand Down

0 comments on commit ed7ea1a

Please sign in to comment.