Create graphics from an XML file with key-value pairs for each graphic and display the military symbols using a MIL-STD-2525D web style in 3D.

Use case
Use a dictionary renderer on a graphics overlay to display more transient data, such as military messages coming through a local tactical network.
How to use the sample
Open the sample and view the military symbols on the scene.
How it works
- Create a new
DictionarySymbolStyleobject with a protal item and set the style’s draw rule configuration to “ORDERED ANCHOR POINTS”. - Create a new
DictionaryRendererobject with the dictionary symbol style. - Create an instance of
GraphicsOverlay. - Set the dictionary renderer to the graphics overlay’s
renderer. - Parse the local XML file, creating a map of key/value pairs for each block of attributes.
- Create an instance of
Graphicfor each attribute. - Use the
_wkidkey to get the geometry’s spatial reference. - Use the
_control_pointskey to get the geometry’s shape. - Add the graphics to the graphics overlay.
Relevant API
- DictionaryRenderer
- DictionarySymbolStyle
- GraphicsOverlay
About the data
The sample uses the Joint Military Symbology MIL-STD-2525D dictionary style from ArcGIS Online. This ArcGIS Web Style is for use to build custom applications that incorporate the MIL-STD-2525D symbol dictionary. This style supports a configuration for modeling locations as ordered anchor points or full geometries.
A local XML file containing messages with MIL-STD-2525D fields for military symbology (MIL-STD-2525D Messages 100.13.0) is also used. This is downloaded from ArcGIS Online automatically.
Tags
defense, military, situational awareness, tactical, visualization