Skip to content

Commit

Permalink
Fix openfreemap positron style
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 26, 2024
1 parent b96d959 commit 65a7cf0
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 65a7cf0

Please sign in to comment.