laptop and a wrench

Error

If a field using subtypes is set as the label field in a FeatureLayer, then the coded value is displayed instead of the field description.

Última publicación: September 24, 2020 ArcGIS API for JavaScript
Número de ID del error BUG-000133404
EnviadoAugust 27, 2020
Última modificaciónAugust 18, 2026
Relacionado conArcGIS API for JavaScript
Versión encontrada4.16
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida4.29
EstadoFixed

Información adicional

In order to view the subtype name on the labels, the Arcade SubtypeName function is required to be added to the label class. Below is a sample from the developer site showing how to set this up programmatically. This can also be configured through the MapViewer labeling panel. Arcade function: https://developers.arcgis.com/arcade/function-reference/feature_functions/#subtypename Developer sample: https://developers.arcgis.com/javascript/latest/sample-code/layers-subtypegrouplayer/?view=playground-only

Pasos para reproducir

ID del error: BUG-000133404

Software:

  • ArcGIS API for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga