diff --git a/CHANGES.txt b/CHANGES.txt index 894157a1fb..50697fb131 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,5 +1,6 @@ 0.4.0 ~~~~~ +- Changed default `max_bounds` to `False` to reflect leaflet's default value (rdd9999 #641) - Added `MeasureControl` (ocefpaf #669) - Added `VideoOverlay` plugin (ocefpaf #665) - Added `TimestampedWmsTileLayers` plugin (acrosby #644 and #660) diff --git a/tests/test_folium.py b/tests/test_folium.py index c9f8f7ea03..193fa39e93 100644 --- a/tests/test_folium.py +++ b/tests/test_folium.py @@ -70,8 +70,14 @@ def setup(self): """Setup Folium Map.""" with mock.patch('branca.element.uuid4') as uuid4: uuid4().hex = '0' * 32 - self.m = folium.Map(location=[45.5236, -122.6750], width=900, - height=400, max_zoom=20, zoom_start=4) + self.m = folium.Map( + location=[45.5236, -122.6750], + width=900, + height=400, + max_zoom=20, + zoom_start=4, + max_bounds=True + ) self.env = Environment(loader=PackageLoader('folium', 'templates')) def test_init(self): @@ -357,6 +363,7 @@ def test_map_build(self): 'lat': 45.5236, 'lon': -122.675, 'size': 'width: 900.0px; height: 400.0px;', 'zoom_level': 4, + 'max_bounds': True, 'min_lat': -90, 'max_lat': 90, 'min_lon': -180,