Use map, TOC, and toolbar beans

This sample uses the Map control to load a .mxd file, the TOC control to view the map contents, and 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 on running the sample.

  1. Run the UseMapTOCToolbarBeans application.
  2. Browse to and open a .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 );

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

mapbean/ Main class.

Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced