How to add data to the ArcGIS Engine Controls


Summary

The document highlights the various methods available to load pre-authored documents and individual data layers to the MapControl, PageLayoutControl, GlobeControl, and SceneControl.

Loading documents into the ArcGIS Engine controls

Pre-authored documents can be loaded into the MapControl, PageLayoutControl, GlobeControl, and SceneControl using the following methods:
  • At run time by the end user interactively using the ControlsOpenDocCommand, ControlsGlobeOpenDocCommand, and ControlsSceneOpenDocCommand that are typically added to a ToolbarControl, to browse and load map documents (*.mxd, *.mxt, *.pmf) into the MapControl and PageLayoutControl, globe documents (*.3dd) into the GlobeControl, and scene documents (*.sxd) into the SceneControl.
  • Programmatically using the IMapControl2::LoadMxFile, IPageLayoutControl::LoadMxFile, IGlobeControl::Load3dFile, and ISceneControl::LoadSxFile methods.
  • At design time through the controls property pages.

Loading data layers into the ArcGIS Engine controls

Individual data layers can be loaded into the MapControl, PageLayoutControl, GlobeControl, and SceneControl using the following methods:
  • At run time by the end user interactively using the ControlsAddDataCommand that is typically added to the ToolbarControl to browse and add shapefile, geodatabase, raster and server data to the MapControl, PageLayoutControl, GlobeControl, and SceneControl.
  • At run time by the end user interactively dragging and dropping data layers from Windows Explorer and ArcCatalog onto the MapControl and PageLayoutControl, when object linking and embedding (OLE) drop functionality has been implemented. See the Enable OLE drop of data in the MapControl sample.
  • Programmatically using the IMapControl2::AddLayer, IMap::AddLayer, IMap::AddLayers, IScene::AddLayer, IScene::AddLayers, and IGlobe::AddLayerType methods.
  • At design time through the MapControl property pages.






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