From 65a7cf0d646209d46a6f85f51724080832bcca0f Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Sat, 26 Oct 2024 10:45:01 -0400 Subject: [PATCH] Fix openfreemap positron style --- leafmap/maplibregl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/leafmap/maplibregl.py b/leafmap/maplibregl.py index d8a44eb68e..209ee83402 100644 --- a/leafmap/maplibregl.py +++ b/leafmap/maplibregl.py @@ -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"