@@ -58,7 +58,7 @@ def wrapper(self, *args, **kwargs):
5858class Map (object ):
5959 """Create a Map with Folium."""
6060
61- def __init__ (self , location = None , width = 960 , height = 500 ,
61+ def __init__ (self , location = None , width = '100%' , height = '100%' ,
6262 tiles = 'OpenStreetMap' , API_key = None , max_zoom = 18 , min_zoom = 1 ,
6363 zoom_start = 10 , attr = None , min_lat = - 90 , max_lat = 90 ,
6464 min_lon = - 180 , max_lon = 180 ):
@@ -84,9 +84,9 @@ def __init__(self, location=None, width=960, height=500,
8484 ----------
8585 location: tuple or list, default None
8686 Latitude and Longitude of Map (Northing, Easting).
87- width: pixel int or percentage string (default 960 )
87+ width: pixel int or percentage string (default: '100%' )
8888 Width of the map.
89- height: pixel int or percentage string (default 500 )
89+ height: pixel int or percentage string (default: '100%' )
9090 Height of the map.
9191 tiles: str, default 'OpenStreetMap'
9292 Map tileset to use. Can use defaults or pass a custom URL.
0 commit comments