Skip to content

Commit c9cca84

Browse files
khllkcmConengmo
authored andcommitted
Fix TimeSliderChoropleth broken setStyle (#1227)
1 parent 8ccf239 commit c9cca84

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

folium/plugins/time_slider_choropleth.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ class TimeSliderChoropleth(Layer):
107107
).addTo({{ this._parent.get_name() }});
108108
109109
{{ this.get_name() }}.setStyle(function(feature) {
110-
feature.properties.style;
110+
if (feature.properties.style !== undefined){
111+
return feature.properties.style;
112+
}
113+
else{
114+
return "";
115+
}
111116
});
112117
113118
{{ this.get_name() }}.eachLayer(function (layer) {

0 commit comments

Comments
 (0)