MapCore::SetView Method (IEnumerable<Location^>^, Thickness, Double, Double)
Bing
Sets the map view to the specified center location, margin, heading, and zoom level.
Assembly: Microsoft.Maps.MapControl.WPF (in Microsoft.Maps.MapControl.WPF.dll)
public: void SetView( IEnumerable<Location^>^ locations, Thickness margin, double heading, double maxZoomLevel )
Parameters
- locations
-
Type:
System.Collections.Generic::IEnumerable<Location^>^
The location of the center of the map view.
- margin
-
Type:
System.Windows::Thickness
The margin in viewport pixels. This value must be non-negative.
- heading
-
Type:
System::Double
The heading of the map view.
- maxZoomLevel
-
Type:
System::Double
The maximum zoom level of the map view.
Show: