queryFeatures

queryFeatures

queryFeatures(requestOptionsIQueryFeaturesOptions): Promise<IQueryFeaturesResponse | IQueryResponse>

Query a feature service. See REST Documentation for more information.

Use dark colors for code blocksCopy
       
1
2
3
4
5
6
7
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
ParameterTypeNotes
requestOptions
IQueryFeaturesOptions

Options for the request

Returns 
Promise<IQueryFeaturesResponse | IQueryResponse>

A Promise that will resolve with the query response.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.