Skip to content

Commit 20bafc3

Browse files
committed
fix geojson marker icon
1 parent addb26b commit 20bafc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

folium/map.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,11 @@ def __init__(
403403
self.options = remove_empty(
404404
draggable=draggable or None, autoPan=draggable or None, **kwargs
405405
)
406+
# this attribute is not used by Marker, but by GeoJson
407+
self.icon: Optional[Icon] = None
406408
if icon is not None:
407409
self.add_child(icon)
410+
self.icon = icon
408411
if popup is not None:
409412
self.add_child(popup if isinstance(popup, Popup) else Popup(str(popup)))
410413
if tooltip is not None:

0 commit comments

Comments
 (0)