Skip to content

Commit e299ec2

Browse files
authored
TileLayer: max_native_zoom cannot be null (#2044)
* remove null values from options * revert * max_native_zoom int value
1 parent d9dd4d6 commit e299ec2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: folium/raster_layers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def __init__(
122122
attr = attr if attr else tiles.html_attribution # type: ignore
123123
min_zoom = min_zoom or tiles.get("min_zoom")
124124
max_zoom = max_zoom or tiles.get("max_zoom")
125-
max_native_zoom = max_native_zoom or tiles.get("max_zoom")
126125
subdomains = tiles.get("subdomains", subdomains)
127126
if name is None:
128127
name = tiles.name.replace(".", "").lower()
@@ -143,7 +142,7 @@ def __init__(
143142
self.options = dict(
144143
min_zoom=min_zoom or 0,
145144
max_zoom=max_zoom or 18,
146-
max_native_zoom=max_native_zoom,
145+
max_native_zoom=max_native_zoom or max_zoom or 18,
147146
no_wrap=no_wrap,
148147
attribution=attr,
149148
subdomains=subdomains,

0 commit comments

Comments
 (0)