addFeatures
FunctionaddFeatures(requestOptions: IAddFeaturesOptions): Promise<{ addResults: IEditFeatureResult[] }>
Add features request. See the REST Documentation for more information.
import { addFeatures } from '@esri/arcgis-rest-feature-service';
//
addFeatures({
url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0",
features: [{
geometry: { x: -120, y: 45, spatialReference: { wkid: 4326 } },
attributes: { status: "alive" }
}]
})
.then(response)
Parameters
Parameter | Type | Notes |
---|---|---|
request | IAddFeaturesOptions | Options for the request. |
Returns
Promise<{ addResults: IEditFeatureResult[] }>
A Promise that will resolve with the addFeatures response.