获得徽章 7
- arcgis.js中的featureLayer.applyEdits({deleteFeatures:[{objectId:1}]}).then(editsResult => {
console.log('删除成功!');
featureLayer.refresh();
})
.catch(error => {
console.log(`删除失败:${error}`);
})这样会提示删除成功。可是会额外提示一个错误:"Uncaught TypeError: Cannot read properties of undefined (reading 'displayId')"在arcgis的Pipeline.js中。然后页面上要素也没有删除。有人知道是为什么吗展开3点赞
![[流泪]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_6.dde0d83.png)
![[看]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_97.39cdc9f.png)