对于发布的map服务,利用data进行要素的属性更新。现在可以获取要素的ID,如何利用iserver更新要素的属性。参考提供的地物编辑,js代码如下:
var editFeaturesService = new ol.supermap.FeatureService(url);
var updateParams = new SuperMap.EditFeaturesParameters({
features:[feature],
dataSourceName: "TestPolygon_UDB",
dataSetName: "New_Region",
editType: "update"
});
其中feature是:{type: "Feature", properties: Object, geometry: Object, id: 12}
出现错误:Uncaught (in promise) TypeError: geoFeature.getProperties is not a function
????