We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent addb26b commit 20bafc3Copy full SHA for 20bafc3
folium/map.py
@@ -403,8 +403,11 @@ def __init__(
403
self.options = remove_empty(
404
draggable=draggable or None, autoPan=draggable or None, **kwargs
405
)
406
+ # this attribute is not used by Marker, but by GeoJson
407
+ self.icon: Optional[Icon] = None
408
if icon is not None:
409
self.add_child(icon)
410
+ self.icon = icon
411
if popup is not None:
412
self.add_child(popup if isinstance(popup, Popup) else Popup(str(popup)))
413
if tooltip is not None:
0 commit comments