Render features in a layer using a distinct symbol for each unique attribute value.
The map with the symbolized feature layer will be shown automatically when the sample loads.
- In this case, the field is subregions of the USA. While multiple fields can be used, this sample only uses one.
- FeatureLayer
- ServiceFeatureTable
- SimpleFillSymbol
- SimpleLineSymbol
- UniqueValue
- UniqueValueRenderer
The map shows U.S. states symbolized by subregion. Symbols are defined for Pacific, Mountain, and West South Central states. All other features are symbolized with the default symbol.
Symbology, UniqueValueRenderer, draw, symbol