Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Info.plist
README.md
Unique_Value_Renderer.cpp
Unique_Value_Renderer.h
Unique_Value_Renderer.json
Unique_Value_Renderer.pro
Unique_Value_Renderer.qml
Unique_Value_Renderer.qrc
arcgisruntime.pri
main.cpp
screenshot.png

README.md

Unique value renderer

This sample demonstrates how to use a UniqueValueRenderer to style different Features in a FeatureLayer with different Symbols.

How it works

This sample demonstrates how to use a UniqueValueRenderer to style different features in a FeatureLayer. Using the UniqueValueRenderer allows for separate symbols to be used for features that have a specific value in a certain field. In this case, the field is state abbreviations in the USA. Multiple fields can be used; this sample only uses one:

  1. Multiple SimpleFillSymbolss are defined for each type of feature we want to render differently.
  2. SimpleFillSymbols can be applied to polygon features, which is the type of feature used for this ServiceFeatureTable.
  3. Separate UniqueValues objects are created which define the values in the renderer field and what symbol should be used to render matching features.
  4. A default symbol is created to render all features that do not match the UniqueValues defined.

Features

  • Map
  • MapView
  • Basemap
  • ServiceFeatureTable
  • FeatureLayer
  • UniqueValueRenderer
  • SimpleFillSymbol
  • SimpleLineSymbol
  • Viewpoint
  • Envelope
  • SpatialReference
You can’t perform that action at this time.