decodeValues

decodeValues

Function
decodeValues(requestOptionsIDecodeValuesOptions): Promise<IQueryFeaturesResponse>
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
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
ParameterTypeNotes
requestOptions
IDecodeValuesOptions

Options for the request.

Returns 
Promise<IQueryFeaturesResponse>

A Promise that will resolve with the addFeatures response.

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