We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4affacb + d09fc43 commit 690ec2bCopy full SHA for 690ec2b
1 file changed
folium/features.py
@@ -422,10 +422,10 @@ class GeoJson(Layer):
422
{% if this.style %}
423
style: {{ this.get_name() }}_styler,
424
{%- endif %}
425
- });
+ }).addTo({{ this._parent.get_name() }});
426
+
427
function {{ this.get_name() }}_add (data) {
- {{ this.get_name() }}.addData(data)
428
- .addTo({{ this._parent.get_name() }});
+ {{ this.get_name() }}.addData(data);
429
}
430
{%- if this.embed %}
431
{{ this.get_name() }}_add({{ this.data|tojson }});
0 commit comments