addFeatures

Function

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)

Add features request. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IAddFeaturesRequestOptions

Options for the request.

Returns

Promise<IAddFeaturesResult> - A Promise that will resolve with the addFeatures response.


Function defined in packages/arcgis-rest-feature-service/src/add.ts:66