@@ -58,7 +58,7 @@ def wrapper(self, *args, **kwargs):
58
58
class Map (object ):
59
59
"""Create a Map with Folium."""
60
60
61
- def __init__ (self , location = None , width = 960 , height = 500 ,
61
+ def __init__ (self , location = None , width = '100%' , height = '100%' ,
62
62
tiles = 'OpenStreetMap' , API_key = None , max_zoom = 18 , min_zoom = 1 ,
63
63
zoom_start = 10 , attr = None , min_lat = - 90 , max_lat = 90 ,
64
64
min_lon = - 180 , max_lon = 180 ):
@@ -84,9 +84,9 @@ def __init__(self, location=None, width=960, height=500,
84
84
----------
85
85
location: tuple or list, default None
86
86
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%' )
88
88
Width of the map.
89
- height: pixel int or percentage string (default 500 )
89
+ height: pixel int or percentage string (default: '100%' )
90
90
Height of the map.
91
91
tiles: str, default 'OpenStreetMap'
92
92
Map tileset to use. Can use defaults or pass a custom URL.
0 commit comments