Skip to content

Commit 9afd56d

Browse files
Default zoom level to 4 instead of 12 so that default Map() don't only show sea. (#1252)
Co-authored-by: martinRenou <[email protected]>
1 parent 21e0089 commit 9afd56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ipyleaflet/ipyleaflet/leaflet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2801,7 +2801,7 @@ class Map(DOMWidget, InteractMixin):
28012801

28022802
# Map options
28032803
center = List(def_loc).tag(sync=True, o=True)
2804-
zoom = CFloat(12).tag(sync=True, o=True)
2804+
zoom = CFloat(4).tag(sync=True, o=True)
28052805
max_zoom = CFloat(default_value=None, allow_none=True).tag(sync=True, o=True)
28062806
min_zoom = CFloat(default_value=None, allow_none=True).tag(sync=True, o=True)
28072807
zoom_delta = CFloat(1).tag(sync=True, o=True)

0 commit comments

Comments
 (0)