Skip to content

Commit f139d26

Browse files
authored
TimeStampedGeoJson add speed_slider argument (#1279)
* added parameter speed_slider to keep or remove slider from map * corrected spaces
1 parent dbd6a96 commit f139d26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

folium/plugins/timestamped_geo_json.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class TimestampedGeoJson(JSCSSMixin, MacroElement):
163163
def __init__(self, data, transition_time=200, loop=True, auto_play=True,
164164
add_last_point=True, period='P1D', min_speed=0.1, max_speed=10,
165165
loop_button=False, date_options='YYYY-MM-DD HH:mm:ss',
166-
time_slider_drag_update=False, duration=None):
166+
time_slider_drag_update=False, duration=None, speed_slider=True):
167167
super(TimestampedGeoJson, self).__init__()
168168
self._name = 'TimestampedGeoJson'
169169

@@ -188,6 +188,7 @@ def __init__(self, data, transition_time=200, loop=True, auto_play=True,
188188
auto_play=auto_play,
189189
loop_button=loop_button,
190190
time_slider_drag_update=time_slider_drag_update,
191+
speed_slider=speed_slider,
191192
player_options={
192193
'transitionTime': int(transition_time),
193194
'loop': loop,

0 commit comments

Comments
 (0)