diff --git a/folium/raster_layers.py b/folium/raster_layers.py index b4eec8ab92..6bfed69e4d 100644 --- a/folium/raster_layers.py +++ b/folium/raster_layers.py @@ -122,7 +122,6 @@ def __init__( attr = attr if attr else tiles.html_attribution # type: ignore min_zoom = min_zoom or tiles.get("min_zoom") max_zoom = max_zoom or tiles.get("max_zoom") - max_native_zoom = max_native_zoom or tiles.get("max_zoom") subdomains = tiles.get("subdomains", subdomains) if name is None: name = tiles.name.replace(".", "").lower() @@ -143,7 +142,7 @@ def __init__( self.options = dict( min_zoom=min_zoom or 0, max_zoom=max_zoom or 18, - max_native_zoom=max_native_zoom, + max_native_zoom=max_native_zoom or max_zoom or 18, no_wrap=no_wrap, attribution=attr, subdomains=subdomains,