ArcObjects Library Reference (Carto)  

IBasicMap Interface

Provides access to members that control the basic map. Note: the IBasicMap interface has been superseded byIBasicMap2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read/write property ActiveGraphicsLayer The active graphics layer. If no graphic layers exist a basic memory graphics layer will be created.
Method AddLayer Adds a layer to the map.
Method AddLayers Adds multiple layers to the map, arranging them nicely if specified.
Write-only property AreaOfInterest Area of interest for the map.
Read-only property BasicGraphicsLayer The basic graphics layer.
Method ClearLayers Removes all layers from the map.
Method ClearSelection Clears the map selection.
Method DeleteLayer Deletes a layer from the map.
Read/write property Description Description of the map.
Read/write property FeatureSelection The map's feature selection.
Read-only property Layer The layer at the given index.
Read-only property LayerCount Number of layers in the map.
Read-only property Layers The layers in the map of the type specified in the uid. If recursive is true it will return layers in group layers.
Read/write property Name Name of the map.
Method SelectByShape Selects features in the map given a shape and a selection environment (optional).
Read-only property SelectionCount Number of selected features in the map.
Read/write property SpatialReference The spatial reference of the map.

CoClasses that implement IBasicMap

CoClasses and Classes Description
Globe (esriGlobeCore) A container for the display and manipulation of data in the Globe.
Map A container for the display and manipulation of map data.
Scene (esri3DAnalyst) A container for the display and manipulation of data.

Remarks

IBasicMap is a subset of IMap that provides support for ArcScene and ArcGlobe. The Map (2D), Scene (3D), and Globe (3D) coclasses implement this interface. Components used by ArcMap, ArcScene, and ArcGlobe, (such as the IdentifyDialog) utilize IBasicMap rather than IMap.

.NET Snippets

Load Force Element Layer | Get BasicMap from Map | Load Tactical Graphic Layer | Get BasicMap from Globe

.NET Samples

ArcGIS Network Analyst extension Engine application (Code Files: frmMain) | Tabbed feature inspector (Code Files: EngineApplication) | Updating the purge rule on a real-time temporal layer (Code Files: TAPurgeRuleCmd) | Using HookActions in custom commands (Code Files: hookActionsCallout hookActionsFlash hookActionsGraphic hookActionsLabel hookActionsPan hookActionsZoom) | RSS weather GraphicTracker (Code Files: AddRSSWeather RSSWeather) | Implementing a property page for an ArcGIS Engine application (Code Files: frmMain) | Save a layer file in a MapControl application (Code Files: frmMain)