Skip to content

Commit d92bdbe

Browse files
committed
Draw GeoJSON first.
1 parent e9cc5db commit d92bdbe

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

folium/templates/geojson_template.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@
7878
attribution: '{{ attr }}'
7979
}).addTo(map);
8080

81+
{% for style in geo_styles %}
82+
{{ style }}
83+
{% endfor %}
84+
85+
{% for layer in gjson_layers %}
86+
{{ layer }}
87+
{% endfor %}
88+
89+
{% for legend in map_legends %}
90+
{{ legend }}
91+
{% endfor %}
92+
8193
{% for mark, popup, add_mark in markers %}
8294
{{ mark }}
8395
{{ popup }}
@@ -97,19 +109,6 @@
97109
{{ lat_lng_pop }}
98110

99111
{{ click_pop }}
100-
101-
{% for style in geo_styles %}
102-
{{ style }}
103-
{% endfor %}
104-
105-
{% for layer in gjson_layers %}
106-
{{ layer }}
107-
{% endfor %}
108-
109-
{% for legend in map_legends %}
110-
{{ legend }}
111-
{% endfor %}
112-
113112
};
114113

115114
</script>

0 commit comments

Comments
 (0)