Represents the background layers displayed in the map.

Namespace:  ESRI.ArcGISExplorer.Mapping
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

Syntax

C#
public sealed class Basemap : MapItem
Visual Basic (Declaration)
Public NotInheritable Class Basemap _
	Inherits MapItem

Remarks

The Basemap contains one or more layers that are displayed as a single entity underneath all other layers in a map. The background layers provide context when working with other items in a map, such as layers and notes.

ArcGIS Explorer comes preconfigured with basemaps for ArcGIS Online and Bing map services. Static initializers on this class return a Basemap instance for each preconfigured service. Alternatively you can create your own Basemap using a map file (.nmf) that contains one or more layers.

The Map.Basemap property allows you to access or change the maps current Basemap. To remove all background layers from the map set the property to nullNothingnullptra null reference (Nothing in Visual Basic).

The map has a ChildItems property that stores map content in a MapItemCollection. Although Basemap derives from MapItem, it cannot be added to a MapItemCollection like other MapItem types; doing so will result in an ArgumentException.

Examples

The code below illustrates how to switch the maps Basemap to use ArcGIS Online Political Boundaries.
CopyC#
//Set the basemap property of the map to use ArcGIS Online Political boundaries
Map map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map;
map.Basemap = Basemap.ArcGISOnline.PoliticalBoundaries;
CopyVB.NET
'Set the basemap property of the map to use ArcGIS Online Political boundaries
Dim map As Map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map
map.Basemap = Basemap.ArcGISOnline.PoliticalBoundaries

Inheritance Hierarchy

System..::.Object
  ESRI.ArcGISExplorer.Mapping..::.MapItem
    ESRI.ArcGISExplorer.Mapping..::.Basemap

See Also

Relate Topics:
  Basemap Members
  Basemap Constructor
  Basemap Methods
  Basemap Properties
Created by Atop CHM to web converter,© 2009 all right reserved.