I would like to create an expression using Arcade for symbology purposes.
I have one layer with six fields, each listing a distance that the feature is from that type of infrastructure. For example, one polygon's six fields tell me it's 100 feet to the nearest railroad, 150 feet to the nearest primary road, 175 feet to the nearest secondary road, 200 feet to the nearest local road, 225 feet to the nearest other type of road, and 250 feet to the nearest trail. I would like to identify the closest infrastructure type to a feature.
I have no problem getting the nearest value; I just use the Min() function. However, I can't get the field name that the value comes from. I'd like to be able to symbolize the features with 6 different colors depending on what infrastructure type is the nearest.
Any assistance is appreciated.