arcgisJs之featureLayer中feature的獲取
在featureLayer中source可以獲取到一個Graphic數組,但是這個數組屬於原數據數組。當使用 applyEdits修改后,source不會受到影響。
若要獲取修改后的數組,需要通過 queryFeatures() 方法去做查詢,獲取最近數據集
代碼示例:
this.map.findLayerById('orchardLayer').queryFeatures().then((res) => { console.log(res) }
鑽研不易,轉載請注明出處。。。。。。。。