diff --git a/folium/plugins/geoman.py b/folium/plugins/geoman.py index dc4c05be4c..a427961191 100644 --- a/folium/plugins/geoman.py +++ b/folium/plugins/geoman.py @@ -64,6 +64,18 @@ class GeoMan(JSCSSMixin, MacroElement): {%- endfor %} }); + {{ this._parent.get_name() }}.on("pm:cut", function(e) { + var layer = e.layer, + type = e.layerType; + + {%- for event, handler in this.on.items() %} + layer.on( + "{{event}}", + {{handler}} + ); + {%- endfor %} + }); + {% endmacro %} """ )