Hello Everyone,
I am trying to symbolize the feature based on its attribute value.
Data: It is electricity data. My goal is to have one symbol when a switch is open and another different symbol when it is closed.
I have tried with attribute-based symbology. However I can only change Color, Outline Color and Outline width on Appearance Tab.
Is it possible to change the symbol itself (to have different symbol) based on the attribute value?
It would be of great help.
Thanks in advance.
-Best Regards
Shlesha
That sounds like you want to symbolize with Unique Values.
Hi Johannes,
Thank you for the reply.
I will try to explain in detail the actual issue. I have already set a unique values symbology for a feature class.
Now, I want to symbolize only the FlowcontrolDevice (one attribute type from a feature class) based on another attribute value.
-shlesha
Ah. In that case, you would need to do the unique symbology on an Arcade expression. Click on the expression button to open the editor:
Use this expression (modify it to fit your actual field names and values):
var asset_group = $feature.AssetGroup
// if this is not a FlowControlDevice, just return the asset group
if(asset_group != 300) {
return asset_group
}
// if this is a FlowControlDevice, return 301 if the switch is open, else 302
if($feature.SwitchIsOpen == 1) {
return 301
}
return 302