deleteAnnotations

Function
import { deleteAnnotations } from "@esri/hub-annotations";
//
deleteAnnotations({
  url: annotationsUrl + "/0",
  // an array of featureIds
  objectIds: [ 1 ]
})
  .then(response);

Delete an annotation from ArcGIS Hub.

  • deleteAnnotations(requestOptions: IDeleteFeaturesOptions) : Promise<{
    deleteResults:
    IEditFeatureResult[]
    }>

Parameters

Parameter Type Default Notes
requestOptions Required IDeleteFeaturesOptions

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 delete annotations.

Promise<{
deleteResults:
IEditFeatureResult[]
}>

Function defined in packages/annotations/src/delete.ts:26