From 3a15bf7b38707542ef693b9d8c12a3c94adcdd50 Mon Sep 17 00:00:00 2001 From: pixelsapphire <35204889+pixelsapphire@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:39:12 +0100 Subject: [PATCH] Add DivIcon as accepted type of Marker icon --- folium/map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folium/map.py b/folium/map.py index 3c5302b8a..60d5c10aa 100644 --- a/folium/map.py +++ b/folium/map.py @@ -373,7 +373,7 @@ def __init__( location: Optional[Sequence[float]] = None, popup: Union["Popup", str, None] = None, tooltip: Union["Tooltip", str, None] = None, - icon: Optional[Icon] = None, + icon: Optional[Union[Icon, "DivIcon"]] = None, draggable: bool = False, **kwargs: TypeJsonValue, ):