Skip to content

Commit 05c17f2

Browse files
committed
fix __geo_interface__ styling
1 parent 3ccc47c commit 05c17f2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

folium/features.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,10 @@ class GeoJson(Layer):
643643
.done({{ this.get_name() }}_add);
644644
{%- endif %}
645645
646+
{%- if not this.style %}
647+
{{this.get_name()}}.setStyle(function(feature) {return feature.properties.style;});
648+
{%- endif %}
649+
646650
{% endmacro %}
647651
"""
648652
) # noqa

0 commit comments

Comments
 (0)