Convert features into graphics to show them with mil2525d symbols.

Use case
A dictionary renderer uses a style file and a rule engine to display advanced symbology. This is useful for displaying features using precise military symbology.
How to use the sample
Pan and zoom around the map. Observe the displayed military symbology on the map.
How it works
- Create and load a
Geodatabaseusing a local “.geodatabase” file. - Create and load a
DictionarySymbolStyleusing a style file. - Create a
FeatureLayerfor each of the geodatabase’sfeatureTables. - Create a
DictionaryRendererusing the dictionary symbol style and assign it to the feature layer’srenderer. - Add the feature layers to the map using
addOperationalLayers(_:). - Load the feature layers and create a new
Envelopefrom a union of the extents of all layers. - Use the envelope to create a viewpoint and pass it to the map view.
Relevant API
- DictionaryRenderer
- DictionarySymbolStyle
Offline data
This sample uses the Joint Military Symbology MIL-STD-2525D style file and the Military Overlay geodatabase. Both are downloaded from ArcGIS Online automatically.
Tags
military, symbol