File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,18 @@ def test_init(self):
6464 'attr' : ('Map data (c) <a href="http://openstreetmap.org">'
6565 'OpenStreetMap</a> contributors' ),
6666 'map_id' : 'folium_' + '0' * 32 ,
67- 'lat' : 45.5236 , 'lon' : - 122.675 , 'max_zoom' : 20 ,
67+ 'lat' : 45.5236 ,
68+ 'lon' : - 122.675 ,
69+ 'max_zoom' : 20 ,
6870 'size' : 'style="width: 900px; height: 400px"' ,
69- 'zoom_level' : 4 , 'tile_layers' : [], 'wms_layers' : []}
71+ 'zoom_level' : 4 ,
72+ 'tile_layers' : [],
73+ 'wms_layers' : [],
74+ 'min_zoom' : 1 ,
75+ 'min_lat' : - 90 ,
76+ 'max_lat' : 90 ,
77+ 'min_lon' : - 180 ,
78+ 'max_lon' : 180 }
7079
7180 assert self .map .template_vars == tmpl
7281
@@ -354,7 +363,12 @@ def test_map_build(self):
354363 'map_id' : 'folium_' + '0' * 32 ,
355364 'lat' : 45.5236 , 'lon' : - 122.675 , 'max_zoom' : 20 ,
356365 'size' : 'style="width: 900px; height: 400px"' ,
357- 'zoom_level' : 4 }
366+ 'zoom_level' : 4 ,
367+ 'min_zoom' : 1 ,
368+ 'min_lat' : - 90 ,
369+ 'max_lat' : 90 ,
370+ 'min_lon' : - 180 ,
371+ 'max_lon' : 180 }
358372 HTML = html_templ .render (tmpl )
359373
360374 assert self .map .HTML == HTML
You can’t perform that action at this time.
0 commit comments