Skip to content

Commit 5a2b066

Browse files
authored
Fix a typo in heat_map_withtime.py (#2004)
1 parent 4f36045 commit 5a2b066

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

folium/plugins/heat_map_withtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class HeatMapWithTime(JSCSSMixin, Layer):
8686
speedStep: {{this.speed_step}},
8787
styleNS: "{{this.style_NS}}",
8888
timeSlider: {{this.time_slider}},
89-
timeSliderDrapUpdate: {{this.time_slider_drap_update}},
89+
timeSliderDragUpdate: {{this.time_slider_drag_update}},
9090
timeSteps: {{this.index_steps}}
9191
})
9292
.addTo({{this._parent.get_name()}});
@@ -199,7 +199,7 @@ def __init__(
199199
self.time_slider = "true"
200200
self.play_button = "true"
201201
self.play_reverse_button = "true"
202-
self.time_slider_drap_update = "false"
202+
self.time_slider_drag_update = "false"
203203
self.style_NS = "leaflet-control-timecontrol"
204204

205205
def render(self, **kwargs):

tests/plugins/test_heat_map_withtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_heat_map_with_time():
5959
speedStep: {{this.speed_step}},
6060
styleNS: "{{this.style_NS}}",
6161
timeSlider: {{this.time_slider}},
62-
timeSliderDrapUpdate: {{this.time_slider_drap_update}},
62+
timeSliderDragUpdate: {{this.time_slider_drag_update}},
6363
timeSteps: {{this.index_steps}}
6464
})
6565
.addTo({{this._parent.get_name()}});

0 commit comments

Comments
 (0)