Skip to content

Commit

Permalink
TileLayer: max_native_zoom cannot be null (python-visualization#2044)
Browse files Browse the repository at this point in the history
* remove null values from options

* revert

* max_native_zoom int value
  • Loading branch information
Conengmo authored Dec 12, 2024
1 parent d9dd4d6 commit e299ec2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions folium/raster_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
Expand Down

0 comments on commit e299ec2

Please sign in to comment.