Skip to content

Commit def0c62

Browse files
Conengmohansthen
authored andcommitted
make DivIcon and CustomIcon work with the new Marker approach
1 parent 7307268 commit def0c62

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

folium/features.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,6 @@ class DivIcon(MacroElement):
17181718
"""
17191719
{% macro script(this, kwargs) %}
17201720
var {{ this.get_name() }} = L.divIcon({{ this.options|tojavascript }});
1721-
{{this._parent.get_name()}}.setIcon({{this.get_name()}});
17221721
{% endmacro %}
17231722
"""
17241723
) # noqa
@@ -1895,7 +1894,6 @@ class CustomIcon(Icon):
18951894
"""
18961895
{% macro script(this, kwargs) %}
18971896
var {{ this.get_name() }} = L.icon({{ this.options|tojavascript }});
1898-
{{ this._parent.get_name() }}.setIcon({{ this.get_name() }});
18991897
{% endmacro %}
19001898
"""
19011899
) # noqa

0 commit comments

Comments
 (0)