Skip to content

Commit f0ee1e6

Browse files
author
Martin Journois
committed
Fix CRS in test_map_build (4)
1 parent 04c55c7 commit f0ee1e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

folium/templates/fol_template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
zoom: {{ zoom_level }},
6666
maxBounds: bounds,
6767
layers: [],
68-
crs: L.CRS.{{tile['crs']}}
68+
crs: L.CRS.{{crs}}
6969
});
7070

7171
{% for tile in tile_layers %}

tests/test_folium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ def test_map_build(self):
463463
'max_zoom': 20,
464464
'min_zoom': 1,
465465
'detect_retina': False,
466-
'crs' : 'EPSG3857',
467466
}]
468467
tmpl = {'map_id': 'map_' + '0' * 32,
469468
'lat': 45.5236, 'lon': -122.675,
@@ -474,6 +473,7 @@ def test_map_build(self):
474473
'min_lon': -180,
475474
'max_lon': 180,
476475
'tile_layers': tile_layers
476+
'crs' : 'EPSG3857',
477477
}
478478
HTML = html_templ.render(tmpl, plugins={})
479479

0 commit comments

Comments
 (0)