Skip to content

Commit

Permalink
Fix localtileserver minzoom issue (#929)
Browse files Browse the repository at this point in the history
* Fix localtileserver minzoom issue

* Change default zoom level
  • Loading branch information
giswqs authored Oct 22, 2024
1 parent b9c3fdf commit d3f1f75
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 = 15

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

Expand Down

0 comments on commit d3f1f75

Please sign in to comment.