diff --git a/folium/plugins/heat_map_withtime.py b/folium/plugins/heat_map_withtime.py index 9a556773c..11f8ee9b7 100644 --- a/folium/plugins/heat_map_withtime.py +++ b/folium/plugins/heat_map_withtime.py @@ -86,7 +86,7 @@ class HeatMapWithTime(JSCSSMixin, Layer): speedStep: {{this.speed_step}}, styleNS: "{{this.style_NS}}", timeSlider: {{this.time_slider}}, - timeSliderDrapUpdate: {{this.time_slider_drap_update}}, + timeSliderDragUpdate: {{this.time_slider_drag_update}}, timeSteps: {{this.index_steps}} }) .addTo({{this._parent.get_name()}}); @@ -199,7 +199,7 @@ def __init__( self.time_slider = "true" self.play_button = "true" self.play_reverse_button = "true" - self.time_slider_drap_update = "false" + self.time_slider_drag_update = "false" self.style_NS = "leaflet-control-timecontrol" def render(self, **kwargs): diff --git a/tests/plugins/test_heat_map_withtime.py b/tests/plugins/test_heat_map_withtime.py index 7713ec4ea..ade6b4e68 100644 --- a/tests/plugins/test_heat_map_withtime.py +++ b/tests/plugins/test_heat_map_withtime.py @@ -59,7 +59,7 @@ def test_heat_map_with_time(): speedStep: {{this.speed_step}}, styleNS: "{{this.style_NS}}", timeSlider: {{this.time_slider}}, - timeSliderDrapUpdate: {{this.time_slider_drap_update}}, + timeSliderDragUpdate: {{this.time_slider_drag_update}}, timeSteps: {{this.index_steps}} }) .addTo({{this._parent.get_name()}});