queryFeatures
FunctionqueryFeatures(requestOptions: IQueryFeaturesOptions): Promise<IQueryFeaturesResponse | IQueryResponse>
Query a feature service. See REST Documentation for more information.
import { queryFeatures } from '@esri/arcgis-rest-feature-service';
queryFeatures({
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3",
where: "STATE_NAME = 'Alaska'"
})
.then(result)
Parameters
Parameter | Type | Notes |
---|---|---|
request | IQueryFeaturesOptions | Options for the request |
Returns
Promise<IQueryFeaturesResponse | IQueryResponse>
A Promise that will resolve with the query response.