地物编辑
地物编辑指对点、线、面等几何对象进行编辑设置,如线型、颜色、线宽等。如果没有自定义设置几何图形的样式,交互控件也会用默认样式进行绘制。
//实例化地物编辑参数类
var addFeatureParams = new SuperMap.EditFeaturesParameters({
features: pointFeature,
dataSourceName: "World",
dataSetName: "Capitals",
editType: "add",
returnContent: true
});
//构建地物编辑服务,url是supermap iserver数据服务
var editFeaturesService = new ol.supermap.FeatureService(url);
editFeaturesService.editFeatures(addFeatureParams, function (serviceResult) {
// 获取返回数据
var result = serviceResult.result;
});