@@ -133,9 +133,10 @@ class TimeSliderChoropleth(JSCSSMixin, Layer):
133
133
$("#slider_{{ this.get_name() }}").show();
134
134
135
135
d3.selectAll('path')
136
- .attr('stroke', 'white ')
137
- .attr('stroke-width', 0.8 )
136
+ .attr('stroke', '{{ this.stroke_color }} ')
137
+ .attr('stroke-width', {{ this.stroke_width }} )
138
138
.attr('stroke-dasharray', '5,5')
139
+ .attr('stroke-opacity', {{ this.stroke_opacity }})
139
140
.attr('fill-opacity', 0);
140
141
141
142
fill_map();
@@ -166,11 +167,18 @@ def __init__(
166
167
control = True ,
167
168
show = True ,
168
169
init_timestamp = 0 ,
170
+ stroke_opacity = 1 ,
171
+ stroke_width = 0.8 ,
172
+ stroke_color = "#FFFFFF" ,
169
173
):
170
174
super ().__init__ (name = name , overlay = overlay , control = control , show = show )
171
175
self .data = GeoJson .process_data (GeoJson ({}), data )
172
176
self .highlight = highlight
173
177
178
+ self .stroke_opacity = stroke_opacity
179
+ self .stroke_width = stroke_width
180
+ self .stroke_color = stroke_color
181
+
174
182
if not isinstance (styledict , dict ):
175
183
raise ValueError (
176
184
f"styledict must be a dictionary, got { styledict !r} "
0 commit comments