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 2D.
Use a dictionary renderer on a graphics overlay to display more transient data, such as military messages coming through a local tactical network.
Pan and zoom to explore military symbols on the map.
- Create a new
DictionarySymbolStyle
using a MIL-STD-2525D dictionary web style. - Create a new
DictionaryRenderer
from the dictionary symbol style. - Create a new
GraphicsOverlay
. - Set the dictionary renderer to the graphics overlay.
- Parse through the XML and create a graphic for each element.
- Use the
_wkid
key to get the geometry's spatial reference. - Use the
_control_points
key to get the geometry's shape. - Create a geometry using the shape and spatial reference from above.
- Create a
Graphic
for each attribute, utilizing it's defined geometry. - Add the graphic to the graphics overlay.
- DictionaryRenderer
- DictionarySymbolStyle
- GraphicsOverlay
This sample uses the MIL-STD-2525D XML Message File hosted on ArcGIS Online.
The dictionary symbol style in this sample is constructed from a portal item containing a MIL-STD-2525D symbol dictionary web style. This ArcGIS Web Style is used 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.
defense, military, situational awareness, tactical, visualization