简体   繁体   English

如何使用draw:在传单中删除开始

[英]How to use draw:deletestart in leaflet

I want to perform some operation when user clicks on delete button in leaflet. 当用户单击传单中的删除按钮时,我想执行一些操作。 This is how I am doing : 这就是我正在做的事情:

map.on('draw:deletestart', function(e) {
    alert("started");
});

But it is not triggering when I click the delete button. 但是当我单击删除按钮时,它不会触发。 Kindly suggest. 请提示。

I was doing this in internet explorer. 我在Internet Explorer中进行此操作。 I ran the same code in mozilla firefox and chrome and it's working fine. 我在mozilla firefox和chrome中运行了相同的代码,并且工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM