applyEdits更新要素时报错


 const attributes = {
              OBJECTID: 1,
              附属物: "四通",
            };
            layer
              .applyEdits({
                updateFeatures: [
                  {
                    attributes:attributes,
                  },
                ],
              })
              .then((editsResult) => {
                console.log("editsResult", editsResult);
              })
各位大佬有没有遇到过更新要素的时候,虽然更新成功了,但是报
details:
stack: "TypeError: Cannot read properties of undefined (reading 'length')\n at d.fromOptimizedFeatureSet (http://10.0.5.15:9988/esri/vie ... 53:197)\n at d.fromFeatureSet (http://10.0.5.15:9988/esri/vie ... 52:492)\n at c.<anonymous> (http://10.0.5.15:9988/esri/vie ... 979:91)\n at d (http://10.0.5.15:9988/dojo/dojo-lite.js:47:190)\n at Object.next (http://10.0.5.15:9988/dojo/dojo-lite.js:45:492)\n at g (http://10.0.5.15:9988/dojo/dojo-lite.js:45:275)"
message: "Cannot read properties of undefined (reading 'length')"
name: "TypeError" 
已邀请:

要回复问题请先登录注册