searchAllAnnotationVotes
import { searchAllAnnotationVotes } from "@esri/hub-annotations";
//
searchAllAnnotationVotes({ url: annotationsUrl + "/0"})
.then(response => {
// data: [{
// id,
// type: "votes",
// attributes: {
// upVotes: 3,
// downVotes: 0
// }
// }]
});
Query for up and down votes on all annotations (with or without additional filters) from ArcGIS Hub.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
requestOptions Required | IQueryFeaturesOptions |
request options that may include authentication |
Available requestOptions
Property | Type | Notes |
---|
Returns
A Promise that will resolve with summary statistics from the annotation service for a Hub enabled ArcGIS Online organization.
Function defined in packages/annotations/src/search.ts:226