This topic has not yet been rated - Rate this topic

Map.SetView Method (GeoCoordinate, Double, Double, Double)

April 12, 2014

Sets the map view using the specified center, zoom level, heading, and pitch.

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)
public void SetView(
	GeoCoordinate center,
	double zoomLevel,
	double heading,
	double pitch
)

Parameters

center
Type: System.Device.Location.GeoCoordinate
The center to use in the map view. For more info, see the Center property.
zoomLevel
Type: System.Double
The zoom level to use in the map view. For more info, see the ZoomLevel property.
heading
Type: System.Double
The heading to use in the map view. For more info, see the Heading property.
pitch
Type: System.Double
The pitch to use in the map view. For more info, see the Pitch property.

If you provide a value for the center argument that is less than two centimeters (2 cm.) from the current center, the new value is ignored and the current center is not changed. The other properties such as zoomLevel, however, are updated using the new values that were passed in, even when the value of center is ignored.

Windows Phone OS

Supported in: 8.1, 8.0

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.