Share via


MapCore.SetView Method (IEnumerable<Location>, Thickness, Double, Double)

 

Sets the map view to the specified center location, margin, heading, and zoom level.

Namespace:   Microsoft.Maps.MapControl.WPF
Assembly:  Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF.dll)

Syntax

public void SetView(
    IEnumerable<Location> locations,
    Thickness margin,
    double heading,
    double maxZoomLevel
)
public:
void SetView(
    IEnumerable<Location^>^ locations,
    Thickness margin,
    double heading,
    double maxZoomLevel
)
member SetView : 
        locations:IEnumerable<Location> *
        margin:Thickness *
        heading:float *
        maxZoomLevel:float -> unit
Public Sub SetView (
    locations As IEnumerable(Of Location),
    margin As Thickness,
    heading As Double,
    maxZoomLevel As Double
)

Parameters

  • maxZoomLevel
    Type: System.Double

    The maximum zoom level of the map view.

See Also

SetView Overload
MapCore Class
Microsoft.Maps.MapControl.WPF Namespace

Return to top