Projection property
Returns or sets whether the map is displayed as a flat map (Miller Cylindrical projection) or globe map (orthographic projection) at zoom levels above 5,700 miles (9,200 kilometers). Below this altitude, the map is always displayed as a globe map. Read/write GeoMapProjection.
GeoMapProjection |
Value |
Description |
---|---|---|
geoFlatViewWhenZoomedOut |
1 |
Miller Cylindrical projection (flat map) at high zoom levels |
geoGlobeViewWhenZoomedOut |
0 |
Orthographic projection (globe map) at high zoom levels |
Applies to
Objects: Map
Syntax
object.Projection
Parameters
Part |
Description |
---|---|
object |
Required. An expression that returns a Map object. |
Remarks
- Setting the Projection property causes an AfterViewChange event for a Map or MappointControl object to occur, even though the map view may not appear to change.
Example
Sub ChangeToGlobeView()
Dim objApp As New MapPoint.Application
'Set up the application
objApp.Visible = True
objApp.UserControl = True
'Change the map projection to
' globe view and zoom out to see it
objApp.ActiveMap.Projection = geoGlobeViewWhenZoomedOut
objApp.ActiveMap.ZoomOut
End Sub