Skip to content

Commit

Permalink
Add tags in Polyline to support TagFilterButton
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiechoi1995 authored May 4, 2023
1 parent ded23e2 commit 6fa0725
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions folium/vector_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ def __init__(self, locations, popup=None, tooltip=None, **kwargs):
super().__init__(locations, popup=popup, tooltip=tooltip)
self._name = "PolyLine"
self.options = path_options(line=True, **kwargs)
self.options.update(
{
"tags": kwargs.pop("tags", None),
}
)


class Polygon(BaseMultiLocation):
Expand Down

0 comments on commit 6fa0725

Please sign in to comment.