Skip to content

Commit 04c55c7

Browse files
author
Martin Journois
committed
Fix CRS in test_map_build (3)
1 parent 68cfa82 commit 04c55c7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

folium/map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def __init__(self, location=None, width='100%', height='100%',
153153
zoom: {{this.zoom_start}},
154154
maxBounds: bounds,
155155
layers: [],
156-
crs: L.CRS.{{this.crs}},
156+
crs: L.CRS.{{this.crs}}
157157
});
158158
{% endmacro %}
159159
""")

folium/templates/fol_template.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
center:[{{ lat }}, {{ lon }}],
6565
zoom: {{ zoom_level }},
6666
maxBounds: bounds,
67-
layers: []
67+
layers: [],
68+
crs: L.CRS.{{tile['crs']}}
6869
});
6970

7071
{% for tile in tile_layers %}
@@ -74,8 +75,7 @@
7475
maxZoom: {{tile['max_zoom']}},
7576
minZoom: {{tile['min_zoom']}},
7677
attribution: '{{tile['attr']}}',
77-
detectRetina: {{tile['detect_retina'].__str__().lower()}},
78-
crs: L.CRS.{{tile['crs']}},
78+
detectRetina: {{tile['detect_retina'].__str__().lower()}}
7979
}
8080
).addTo({{ map_id }});
8181
{% endfor %}

tests/test_folium.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def test_map_build(self):
473473
'max_lat': 90,
474474
'min_lon': -180,
475475
'max_lon': 180,
476-
'tile_layers': tile_layers,
476+
'tile_layers': tile_layers
477477
}
478478
HTML = html_templ.render(tmpl, plugins={})
479479

0 commit comments

Comments
 (0)