MapStyle property
Returns or sets the map style; similar to clicking Map Style on the View menu. Read/write GeoMapStyle.
GeoMapStyle | Value | Description |
---|---|---|
geoMapStyleData |
2
|
Data map |
geoMapStyleNight |
5
|
Night map |
geoMapStylePolitical |
4
|
Political map |
geoMapStyleRoad |
0
|
Road map |
geoMapStyleRoadData |
1
|
Road and data map |
geoMapStyleTerrain |
3
|
Terrain map |
Applies to
Objects: Map
Syntax
object.MapStyle
Parameters
Part | Description |
---|---|
object | Required. An expression that returns a Map object. |
Remarks
For a detailed description of map styles, see the Choose a map style procedural topic.
Example
Sub ChangeMapStyle()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Change the map style
objApp.ActiveMap.MapStyle = geoMapStylePolitical
End Sub