decodeValues
FunctiondecodeValues(requestOptions: IDecodeValuesOptions): Promise<IQueryFeaturesResponse>
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 | Notes |
---|---|---|
request | IDecodeValuesOptions | Options for the request. |
Returns
Promise<IQueryFeaturesResponse>
A Promise that will resolve with the addFeatures response.