MapViewport Class Reference

Properties

Coordinates Center [get, set]
 Gets or sets the geographic coordinates for the desired center point of the map. More...
 
Point ScreenCenter [get, set]
 Gets or sets the desired center of the map in pixels. More...
 
double ZoomRadius [get, set]
 Gets or sets the zoom radius (in miles) which is a numeric entry representing the radius of the circle which defines the map to be displayed. More...
 
Coordinates CornerA [get, set]
 Gets or sets the geographic coordinates for the first corner of the map which should be diagonally across from the second corner. More...
 
Coordinates CornerB [get, set]
 Gets or sets the geographic coordinates for the second corner of the map which should be diagonally across from the first corner. More...
 
MapRegion Region [get, set]
 Gets or sets the region for the map. More...
 

Detailed Description

Represents the geographic display settings for a map as part of a MapSettings object.

Property Documentation

◆ Center

Coordinates Center
getset

Gets or sets the geographic coordinates for the desired center point of the map.

The center point must be supplied with a zoom radius and takes precedence over any other information supplied such as corners, routes and pins.

◆ ScreenCenter

Point ScreenCenter
getset

Gets or sets the desired center of the map in pixels.

This feature is useful when dragging a map and the desired pixel center of the map is known. Map corners, a route or pins must be supplied. Do not supply a coordinates center when using this feature.

◆ ZoomRadius

double ZoomRadius
getset

Gets or sets the zoom radius (in miles) which is a numeric entry representing the radius of the circle which defines the map to be displayed.

The zoom radius will only be used when valid Center is supplied or when framing a single pin.

◆ CornerA

Coordinates CornerA
getset

Gets or sets the geographic coordinates for the first corner of the map which should be diagonally across from the second corner.

CornerA and CornerB must be supplied together and are used when the center point and zoom radius are not supplied.

◆ CornerB

Coordinates CornerB
getset

Gets or sets the geographic coordinates for the second corner of the map which should be diagonally across from the first corner.

CornerA and CornerB must be supplied together and are used when the center point and zoom radius are not supplied.

◆ Region

MapRegion Region
getset

Gets or sets the region for the map.

This map region will be framed when no other framing information such as a center, corners, route or pins is provided.

Valid map regions are NA (all of North America), US (United States), Mexico, Canada, Puerto Rico and Bermuda.