Select to view content in your preferred language

Renderer based on multiple fields

2361
1
03-30-2011 10:47 AM
DonFreeman
Emerging Contributor
Does anyone know if a UniqueValueRenderer can be based on multiple fields? If yes, what would the syntax look like? and if no, is there another way to symbolize based on multiple fields?
Thanks
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
You can implement your own renderer as described in post# 8 in this thread: http://forums.arcgis.com/threads/22939-feature-layer-not-binding-to-the-Unique-Value-renderer. For your case though, you will need Attributes[] and Info.Values[]. For every attribute, you need to check if it is equal to any of the info.Values[]. If all attributes have been matched with an info.Value, then you can return that info.Symbol.
0 Kudos