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 45ab9a9 commit 49e7728Copy full SHA for 49e7728
folium/features.py
@@ -570,9 +570,9 @@ class GeoJson(Layer):
570
571
{%- if this.marker %}
572
function {{ this.get_name() }}_pointToLayer(feature, latlng) {
573
- var opts = {{ this.marker.options | tojson | safe }};
+ var opts = {{ this.marker.options | tojavascript }};
574
{% if this.marker._name == 'Marker' and this.marker.icon %}
575
- const iconOptions = {{ this.marker.icon.options | tojson | safe }}
+ const iconOptions = {{ this.marker.icon.options | tojavascript }}
576
const iconRootAlias = L{%- if this.marker.icon._name == "Icon" %}.AwesomeMarkers{%- endif %}
577
opts.icon = new iconRootAlias.{{ this.marker.icon._name }}(iconOptions)
578
{% endif %}
0 commit comments