Skip to content

Commit 745e2ca

Browse files
authored
preserve {r} in basemap urls (#1241)
1 parent 9afd56d commit 745e2ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ipyleaflet/ipyleaflet/leaflet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def basemap_to_tiles(basemap, day=yesterday, **kwargs):
102102
Extra key-word arguments to pass to the TileLayer constructor.
103103
"""
104104
if isinstance(basemap, xyzservices.lib.TileProvider):
105-
url = basemap.build_url(time=day)
105+
url = basemap.build_url(time=day, scale_factor="{r}")
106106
elif isinstance(basemap, dict):
107107
url = basemap.get("url", "")
108108
else:

0 commit comments

Comments
 (0)