I have a map with feature layers, I am trying to set the label for the layer using a field ["ASSETGROUP"], its real value comes from the the Feature Layer TYPES property. This property holds subtypes defined in the feature service which are exposed by ArcGIS REST API. Usually I get the actual value by processing the subtypes to get the actual value using the code stored in the feature layer field.
Is it possible to do this when setting the label to feature layer ?
I tried to set the label expression property to the field name, and set the useCodedValues property to true, but this only works on regular domain fields.
I am still getting the Code when I use the field that require some processing from the Types property on the feature layer.
Hi @ZaidOdeh, can you share a codepen of this? Or access to the service you are trying to label? You can send it as a private message if you don't want to share here.
I just sent you a private message of the feature service