Use map, TOC, and toolbar beans


Purpose This sample uses the Map control to load an MXD file, the TOC control to view the map contents, as well as built-in Engine commands on the Toolbar control to pan and zoom the map.

How to use

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

  1. Run the UseMapTOCToolbarBeans application.
  2. Browse to and open an MXD file.
  3. Use the commands on the toolbar to pan and zoom the map.
  4. To add tools to the toolbar, edit the source code as follows: <br/>toolbarControl.addItem( Object command, int subtype, int index, boolean beginGroup, int groupSpacing, int style );





Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcView
ArcEditor
ArcInfo