updateAnnotations
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.
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.
Function defined in packages/annotations/src/update.ts:32