diff --git a/leafmap/leafmap.py b/leafmap/leafmap.py index a8d17594c0..baf5ed2c4a 100644 --- a/leafmap/leafmap.py +++ b/leafmap/leafmap.py @@ -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)