Skip to content

Commit cb3987a

Browse files
andy23512Conengmo
authored andcommitted
TimestampedGeoJson also accepts Polygon, add to docstring (#893)
The `TimestampedGeoJson` class also works when the geometry type is Polygon. Change the docstring to reflect that.
1 parent 41e494d commit cb3987a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folium/plugins/timestamped_geo_json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class TimestampedGeoJson(MacroElement):
1616
into a map with Map.add_child.
1717
1818
A geo-json is timestamped if:
19-
* it contains only features of types LineString, MultiPoint, MultiLineString
20-
and MultiPolygon.
19+
* it contains only features of types LineString, MultiPoint, MultiLineString,
20+
Polygon and MultiPolygon.
2121
* each feature has a 'times' property with the same length as the
2222
coordinates array.
2323
* each element of each 'times' property is a timestamp in ms since epoch,

0 commit comments

Comments
 (0)