Skip to content

Commit 56f67a4

Browse files
authored
Update features.py
A little bit cleaner. Since we generate js code using `new` it is cleaner not to use the factory method but the class name.
1 parent 15d4593 commit 56f67a4

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 = "icon"
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)