queryFeatures

Function

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)

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

Parameters

Parameter Type Default Notes
requestOptions Required IQueryFeaturesRequestOptions

Options for the request

Returns

Promise<IQueryFeaturesResponse | IQueryResponse> - A Promise that will resolve with the query response.


Function defined in packages/arcgis-rest-feature-service/src/query.ts:163