Skip to content

Commit

Permalink
Fix a typo in heat_map_withtime.py (#2004)
Browse files Browse the repository at this point in the history
  • Loading branch information
hansthen authored Oct 17, 2024
1 parent 4f36045 commit 5a2b066
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions folium/plugins/heat_map_withtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}});
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/test_heat_map_withtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()}});
Expand Down

0 comments on commit 5a2b066

Please sign in to comment.