Select to view content in your preferred language

Custom expressions for symbology—ArcGIS Pro

435
0
02-01-2024 07:08 PM
Labels (3)
BSBlagojevic
Occasional Contributor

I have a predefined Symbol style where each symbol is abbreviatedly named/coded. The polygon feature class(es) contains two attributes; Name and ColorSymbol in which null not permitted (see pic below). The first names a lot of feature(s), and the second contains the abbreviation/code of the corresponding symbol from the predefined style.

Pic_1.png
For symbology I use GP toll 'Much Layer Symbology To A Style', but instead of abbreviations/codes of symbols in the Content Panel/legend (see pic bellow)

Pic_2.png

I would like to return/see the Names of feature(s);

Pic_3.png
All attempts to do this with the Arcade expression similar to this; $feature.ColorSymbol
return $feature.Name or $feature.ColorSymbol
return $feature.Name == 'Name'
 have been unsuccessful.
Is there any way to do this in one or possibly two steps using the Arcade functions. Any help/suggestion is welcome!

I work in ArcGIS Pro ver. 3.2.1

Thank you!

0 Kudos
0 Replies