Displaying symbol-based MOLE graphics on a MapControl


PurposeThis sample shows how to create and display symbol-based MOLE force element graphics using the various implementations of the ISymbol interface (IMoleSymbol, IMoleMarkerSymbol, IMoleLineSymbol, and IMoleFillSymbol).

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.

Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/MilitaryOverlayEditor/molebasemap.mxd.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Build the MoleDisplay solution and run MoleDisplay.exe.
  2. Click the Add Graphics button to add several MOLE force element graphics to the map at random locations. Click the button several more times to continue to add multiple force element graphics to the map.
  3. Click the Clear Graphics button to remove all MOLE graphics from the map.

Additional information

Many of the ArcGIS Military Analyst and MOLE extension application programming interface (API) objects you have used in the past have equivalent or near equivalent objects in the ArcGIS 10 ArcObjects API. These new objects should now be used and do not require a Military Analyst extension or MOLE extension license. See Migrating from Military Analyst and MOLE for information on how to accomplish tasks in ArcGIS 10 that previously required the Military Analyst and MOLE APIs.

MoleDisplay.cs Form to show MOLE graphics using the map control.
MoleDisplay.Designer.cs Form to show MOLE graphics using the map control.
Program.cs Secures and releases resources for the application.
MoleDisplay.resx Resources used by the application.
Download the C# files
MoleDisplay.vb Form to show MOLE graphics using the map control.
MoleDisplay.Designer.vb Form to show MOLE graphics using the map control.
MoleDisplay.resx Resources used by the application.
Download the VB.NET files

Download the files for all languages

See Also:

DefenseSolutions library overview–Managing MOLE graphics as standard ArcObjects
Using military symbology and symbol-based graphics
Sample: Decluttering MOLE graphics using leadering and stacking
Sample: Arranging MOLE graphics using manual decluttering
Sample: Using MOLE symbol-based graphics with interactive maps




Development licensing Deployment licensing
Engine Developer Kit: Military Overlay Editor Engine Runtime: Military Overlay Editor
ArcView: Military Overlay Editor
ArcEditor: Military Overlay Editor
ArcInfo: Military Overlay Editor