Skip to content

Commit 4bdcb85

Browse files
authored
Merge pull request #844 from Conengmo/repair-test
Fix: max_native_zoom in test
2 parents 9e2ee74 + 461479e commit 4bdcb85

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

folium/templates/fol_template.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
{
6666
"attribution": "{{tile['attr']}}",
6767
"detectRetina": {{tile['detect_retina'].__str__().lower()}},
68+
"maxNativeZoom": {{tile['max_native_zoom']}},
6869
"maxZoom": {{tile['max_zoom']}},
6970
"minZoom": {{tile['min_zoom']}},
7071
"noWrap": {{tile['no_wrap'].__str__().lower()}},

tests/test_folium.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def test_map_build(self):
206206
{'id': 'tile_layer_'+'0'*32,
207207
'address': 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
208208
'attr': attr,
209+
'max_native_zoom': 20,
209210
'max_zoom': 20,
210211
'min_zoom': 0,
211212
'detect_retina': False,

0 commit comments

Comments
 (0)