We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9dd4d6 commit e299ec2Copy full SHA for e299ec2
folium/raster_layers.py
@@ -122,7 +122,6 @@ def __init__(
122
attr = attr if attr else tiles.html_attribution # type: ignore
123
min_zoom = min_zoom or tiles.get("min_zoom")
124
max_zoom = max_zoom or tiles.get("max_zoom")
125
- max_native_zoom = max_native_zoom or tiles.get("max_zoom")
126
subdomains = tiles.get("subdomains", subdomains)
127
if name is None:
128
name = tiles.name.replace(".", "").lower()
@@ -143,7 +142,7 @@ def __init__(
143
142
self.options = dict(
144
min_zoom=min_zoom or 0,
145
max_zoom=max_zoom or 18,
146
- max_native_zoom=max_native_zoom,
+ max_native_zoom=max_native_zoom or max_zoom or 18,
147
no_wrap=no_wrap,
148
attribution=attr,
149
subdomains=subdomains,
0 commit comments