MOLE custom callback


Purpose This sample uses the MOLE FEGraphicStyle class and ICallback interface to change the graphic of military symbology before and after symbols are drawn on the map. The ICallback interface is used in the GraphicCallback class to add a custom graphic object to symbols using a symbol envelope. The symbol envelope includes the symbol itself and any text attributes displayed with the symbol. The ICallback interface uses the TextCallback class to add custom text to a symbol using the symbol's latitude and longitude map coordinates.

How to use

See How to use ArcGIS samples for help running the sample.

  1. Run the application.
  2. Check the Draw Graphic On Click box.
  3. Click the map to create a force element graphic using the default GraphicStyle.
  4. Fill in the Name and Parent fields to change the force element graphic modifiers.
  5. Change the Symbol ID code in the Symbol ID field.

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.





Development licensing Deployment licensing
Engine Developer Kit: Military Overlay Editor Engine Runtime: Military Overlay Editor