@@ -101,8 +101,10 @@ class Map(MacroElement):
101
101
pass a custom URL or pass `None` to create a map without tiles.
102
102
API_key: str, default None
103
103
API key for Cloudmade or Mapbox tiles.
104
+ min_zoom: int, default 0
105
+ Minimum allowed zoom level for the tile layer that is created.
104
106
max_zoom: int, default 18
105
- Maximum zoom depth for the map .
107
+ Maximum allowed zoom level for the tile layer that is created .
106
108
zoom_start: int, default 10
107
109
Initial zoom level for the map.
108
110
attr: string, default None
@@ -163,7 +165,7 @@ class Map(MacroElement):
163
165
164
166
def __init__ (self , location = None , width = '100%' , height = '100%' ,
165
167
left = '0%' , top = '0%' , position = 'relative' ,
166
- tiles = 'OpenStreetMap' , API_key = None , max_zoom = 18 , min_zoom = 1 ,
168
+ tiles = 'OpenStreetMap' , API_key = None , max_zoom = 18 , min_zoom = 0 ,
167
169
zoom_start = 10 , world_copy_jump = False ,
168
170
no_wrap = False , attr = None , min_lat = - 90 , max_lat = 90 ,
169
171
min_lon = - 180 , max_lon = 180 , max_bounds = False ,
@@ -178,9 +180,9 @@ def __init__(self, location=None, width='100%', height='100%',
178
180
self .png_enabled = png_enabled
179
181
180
182
if not location :
181
- # If location is not passed we center and ignore zoom.
183
+ # If location is not passed we center and zoom out .
182
184
self .location = [0 , 0 ]
183
- self .zoom_start = min_zoom
185
+ self .zoom_start = 1
184
186
else :
185
187
self .location = _validate_location (location )
186
188
self .zoom_start = zoom_start
@@ -309,7 +311,7 @@ def _repr_png_(self):
309
311
return self ._to_png ()
310
312
311
313
def add_tile_layer (self , tiles = 'OpenStreetMap' , name = None ,
312
- API_key = None , max_zoom = 18 , min_zoom = 1 ,
314
+ API_key = None , max_zoom = 18 , min_zoom = 0 ,
313
315
attr = None , active = False ,
314
316
detect_retina = False , no_wrap = False , subdomains = 'abc' ,
315
317
** kwargs ):
0 commit comments