Skip to content
javascript
map.on('draw.create', function (e) {
  console.log(e.features)
})

draw.create ​

创建要素时触发。以下交互将触发此事件

draw.clickOnFeature ​

静默模式下点击要素事件

javascript
map.on('draw.clickOnFeature', function (e) {
  console.log(e.features)
  e.done() //执行选中
})

draw.update ​

当一项或多项要素更新时触发

draw.selectionchange ​

选择更改时触发(即选择或取消选择一个或多个要素)