Skip to content

Commit 49e7728

Browse files
committed
Fix awesome markers broken by tojavascript
1 parent 45ab9a9 commit 49e7728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folium/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,9 @@ class GeoJson(Layer):
570570
571571
{%- if this.marker %}
572572
function {{ this.get_name() }}_pointToLayer(feature, latlng) {
573-
var opts = {{ this.marker.options | tojson | safe }};
573+
var opts = {{ this.marker.options | tojavascript }};
574574
{% if this.marker._name == 'Marker' and this.marker.icon %}
575-
const iconOptions = {{ this.marker.icon.options | tojson | safe }}
575+
const iconOptions = {{ this.marker.icon.options | tojavascript }}
576576
const iconRootAlias = L{%- if this.marker.icon._name == "Icon" %}.AwesomeMarkers{%- endif %}
577577
opts.icon = new iconRootAlias.{{ this.marker.icon._name }}(iconOptions)
578578
{% endif %}

0 commit comments

Comments
 (0)