Class: EditFeaturesParameters

SuperMap.EditFeaturesParameters

The parameter class for adding, modifying, deleting datasets on data service.

new SuperMap.EditFeaturesParameters(options)

EditFeaturesParameters.js, line 6
Name Type Description
options Object

The parameters.

Name Type Default Description
features Array.<(SuperMap.Feature.Vector|GeoJSONObject|ol.feature)>

The feature dataset to be created or modified.

returnContent boolean false optional

Whether to return the ID array of the created feature or the URI of the featureResult resource.

editType SuperMap.EditType SuperMap.EditType.ADD optional

POST action type (ADD, UPDATE, DELETE).

IDs Array.<(string|integer)> optional

The feature ID collection when deleting.

Members

dataSetNamestring

The data set to be created or modified.

dataSourceNamestring

The data source to be created or modified.

The update type for feature dataset (add, update, delete).

Default Value:
SuperMap.EditType.ADD

featuresArray.<(SuperMap.Feature.Vector|GeoJSONObject|ol.feature)>

The feature dataset to be created or modified.

IDsArray.<(string|number)>

The feature ID collection when deleting.

isUseBatchboolean

Whether to use the bulk addition of features. This function is active for adding features. The bulk addition function can improve the editing efficiency of features. True denotes to use the bulk addition function; false denotes not to use this function.

returnContentboolean

It is valid when adding features. Ture, return the new array of the feature IDs. false, return URI of featureResult.

Methods

destroy()

EditFeaturesParameters.js, line 69

Disposes the resource. The property that references resource is set to null.

toJsonParameters(params){string}

EditFeaturesParameters.js, line 83

Transform the EditFeaturesParameters to JSON string.

Name Type Description
params SuperMap.EditFeaturesParameters

The EditFeaturesParameters class

Returns:
Type Description
string The JSON object.