decodeValues

Function

import { queryFeatures, decodeValues } from '@esri/arcgis-rest-feature-service';
//
const url = `https://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/0`
queryFeatures({ url })
  .then(queryResponse => {
    decodeValues({
      url,
      queryResponse
    })
      .then(decodedResponse)
  })

Replaces the raw coded domain values in a query response with descriptions (for legibility).

Parameters

Parameter Type Default Notes
requestOptions Required IDecodeValuesRequestOptions

Options for the request.

Returns

Promise<IQueryFeaturesResponse> - A Promise that will resolve with the addFeatures response.


Function defined in packages/arcgis-rest-feature-service/src/decodeValues.ts:63