Skip to content

Commit 0e6ca7d

Browse files
authored
Merge pull request #1054 from Conengmo/divicon-template-literals
Use Javascript template literals in DivIcon
2 parents 49d724d + 3d3e16d commit 0e6ca7d

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
@@ -1092,7 +1092,7 @@ class DivIcon(MacroElement):
10921092
{% if this.icon_anchor %}iconAnchor: [{{this.icon_anchor[0]}},{{this.icon_anchor[1]}}],{% endif %}
10931093
{% if this.popup_anchor %}popupAnchor: [{{this.popup_anchor[0]}},{{this.popup_anchor[1]}}],{% endif %}
10941094
{% if this.className %}className: '{{this.className}}',{% endif %}
1095-
{% if this.html %}html: '{{this.html}}',{% endif %}
1095+
{% if this.html %}html: `{{this.html}}`,{% endif %}
10961096
});
10971097
{{this._parent.get_name()}}.setIcon({{this.get_name()}});
10981098
{% endmacro %}

0 commit comments

Comments
 (0)