Skip to content

Commit 0896151

Browse files
mccarthyryancConengmo
authored andcommitted
Fix rendering draw and edit options to json (#1175)
1 parent e6d2c5b commit 0896151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

folium/plugins/draw.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ class Draw(MacroElement):
4444
{% macro script(this, kwargs) %}
4545
var options = {
4646
position: {{ this.position|tojson }},
47-
draw: {{ this.draw_options }},
48-
edit: {{ this.edit_options }},
47+
draw: {{ this.draw_options|tojson }},
48+
edit: {{ this.edit_options|tojson }},
4949
}
5050
// FeatureGroup is to store editable layers.
5151
var drawnItems = new L.featureGroup().addTo(

0 commit comments

Comments
 (0)