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 74b23d4 commit 6852dfeCopy full SHA for 6852dfe
folium/features.py
@@ -1718,7 +1718,6 @@ class DivIcon(MacroElement):
1718
"""
1719
{% macro script(this, kwargs) %}
1720
var {{ this.get_name() }} = L.divIcon({{ this.options|tojavascript }});
1721
- {{this._parent.get_name()}}.setIcon({{this.get_name()}});
1722
{% endmacro %}
1723
1724
) # noqa
@@ -1895,7 +1894,6 @@ class CustomIcon(Icon):
1895
1894
1896
1897
var {{ this.get_name() }} = L.icon({{ this.options|tojavascript }});
1898
- {{ this._parent.get_name() }}.setIcon({{ this.get_name() }});
1899
1900
1901
0 commit comments