我有一个 FeatureCollection 从中删除单个功能。我可以通过添加事件侦听器pm:remove来获取已删除的功能,如下所示:
layer.on('pm:remove', e => {
// do stuff regarding the removed feature
console.log(e.layer.feature)
});
我还想访问生成的 FeatureCollection(已从中删除该功能)。我怎么能“ console.log() ”呢?
我有一个 FeatureCollection 从中删除单个功能。我可以通过添加事件侦听器pm:remove来获取已删除的功能,如下所示:
layer.on('pm:remove', e => {
// do stuff regarding the removed feature
console.log(e.layer.feature)
});
我还想访问生成的 FeatureCollection(已从中删除该功能)。我怎么能“ console.log() ”呢?