Skip to content

Commit a87a449

Browse files
committed
Default size is 100%.
1 parent dcaf575 commit a87a449

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

folium/folium.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def wrapper(self, *args, **kwargs):
5858
class 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

Comments
 (0)