Skip to content

Commit

Permalink
Fix localtileserver minzoom issue
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Oct 22, 2024
1 parent ad774f4 commit 81b4677
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion leafmap/leafmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,10 @@ def add_raster(
self.add(tile_layer, index=layer_index)
if zoom_to_layer:
self.center = tile_client.center()
self.zoom = tile_client.default_zoom
try:
self.zoom = tile_client.default_zoom
except AttributeError:
self.zoom = 10

arc_add_layer(tile_layer.url, layer_name, True, 1.0)

Expand Down

0 comments on commit 81b4677

Please sign in to comment.