Skip to content

Commit 15d4593

Browse files
committed
Fix or mitigate #2152. CustomIcon doesn't exist (anymore?) in leaflet
1 parent 8e09fb8 commit 15d4593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

folium/features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ def __init__(
19401940
popup_anchor: Optional[Tuple[int, int]] = None,
19411941
):
19421942
super(Icon, self).__init__()
1943-
self._name = "CustomIcon"
1943+
self._name = "icon"
19441944
self.options = remove_empty(
19451945
icon_url=image_to_url(icon_image),
19461946
icon_size=icon_size,

0 commit comments

Comments
 (0)