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

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Sets the map view using the specified center, zoom level, heading, and pitch. The view change uses the specified animation.

Namespace:  Microsoft.Phone.Maps.Controls
Assembly:  Microsoft.Phone.Maps (in Microsoft.Phone.Maps.dll)

Syntax

Public Sub SetView ( _
    center As GeoCoordinate, _
    zoomLevel As Double, _
    heading As Double, _
    pitch As Double, _
    animationKind As MapAnimationKind _
)
public void SetView(
    GeoCoordinate center,
    double zoomLevel,
    double heading,
    double pitch,
    MapAnimationKind animationKind
)

Parameters

Remarks

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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

Map Class

SetView Overload

Microsoft.Phone.Maps.Controls Namespace