Skip to content

Commit

Permalink
fix geojson marker icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Conengmo committed Jan 24, 2025
1 parent addb26b commit 20bafc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions folium/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,11 @@ def __init__(
self.options = remove_empty(
draggable=draggable or None, autoPan=draggable or None, **kwargs
)
# this attribute is not used by Marker, but by GeoJson
self.icon: Optional[Icon] = None
if icon is not None:
self.add_child(icon)
self.icon = icon
if popup is not None:
self.add_child(popup if isinstance(popup, Popup) else Popup(str(popup)))
if tooltip is not None:
Expand Down

0 comments on commit 20bafc3

Please sign in to comment.