Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 795 Bytes

File metadata and controls

30 lines (18 loc) · 795 Bytes

Unique value renderer

Render features in a layer using a distinct symbol for each unique attribute value.

screenshot

How to use the sample

The map with the symbolized feature layer will be shown automatically when the sample loads.

How it works

  1. In this case, the field is subregions of the USA. While multiple fields can be used, this sample only uses one.

Relevant API

  • FeatureLayer
  • ServiceFeatureTable
  • SimpleFillSymbol
  • SimpleLineSymbol
  • UniqueValue
  • UniqueValueRenderer

About the data

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.

Tags

Symbology, UniqueValueRenderer, draw, symbol