【发布时间】:2015-12-02 01:58:34
【问题描述】:
我根据How to click a button and start a new polygon without using the Leaflet.draw UI 和How to initiate the draw function without toolbar? 设置了一个自定义按钮来启动绘图。但是,一旦有人单击此自定义按钮,我就无法弄清楚如何模仿 Cancel 按钮的行为,以便我可以拥有类似
<input type="button" onclick="stopEdits()" value="Click to Stop Drawing">
function stopEdits() {
//Cancel Drawing
}
【问题讨论】:
标签: javascript leaflet leaflet.draw