Skip to content

Commit 057fdbe

Browse files
enricorotundoConengmo
authored andcommitted
Improved docs for HeatMapWithTime plugin (#944)
Specify allowed range for weights in HeatMapWithTime.
1 parent c64c659 commit 057fdbe

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

examples/HeatMapWithTime.ipynb

Lines changed: 18 additions & 6 deletions
Large diffs are not rendered by default.

folium/plugins/heat_map_withtime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ class HeatMapWithTime(Layer):
1616
----------
1717
data: list of list of points of the form [lat, lng] or [lat, lng, weight]
1818
The points you want to plot. The outer list corresponds to the various time
19-
steps in sequential order. (weight defaults to 1 if not specified for a point)
19+
steps in sequential order. (weight is in (0, 1] range and defaults to 1 if
20+
not specified for a point)
2021
index: Index giving the label (or timestamp) of the elements of data. Should have
2122
the same length as data, or is replaced by a simple count if not specified.
2223
name : string, default None

0 commit comments

Comments
 (0)