updateAnnotations

Function
import { updateAnnotations } from "@esri/hub-annotations";
//
updateAnnotations({
  url: annotationsUrl + "/0",
  features: [{
    attributes: {
      // an ID is necessary to determine which feature to update
      OBJECTID: 1,
      status: "approved"
    }
  }]
})
  .then(response);

Update an annotation in ArcGIS Hub.

  • updateAnnotations(requestOptions: IUpdateFeaturesOptions) : Promise<{
    updateResults:
    Array<IEditFeatureErrorResponse | IEditFeatureResult>
    }>

Parameters

Parameter Type Default Notes
requestOptions Required IUpdateFeaturesOptions

request options that may include authentication

Available requestOptions

Property Type Notes

Returns

A Promise that will resolve with the response from the service after attempting to update one or more annotations.

Promise<{
updateResults:
Array<IEditFeatureErrorResponse | IEditFeatureResult>
}>

Function defined in packages/annotations/src/update.ts:32