The Map controls Pitch
and Heading
properties that allow you to adjust the maps angle of inclination and the direction that the map is facing, respectively.
<m:Map
...
Heading="{Binding Heading, Mode=TwoWay}"
Pitch="{Binding Pitch, Mode=TwoWay}"
...
</m:Map>
Pitch
represents the inclination in degrees and is a double value between 0 and 75.
Heading
is also a double value and represents the rotational offset of the map in degrees. The value can be a negative or positive value.
Two slider controls on the MapView
page control the pitch and heading of the map. The Pitch slider is a vertical slider that is bound to the viewmodel’s Pitch
property, as shown:
<Slider Value="{Binding Pitch, Mode=TwoWay}"
Minimum="0" Maximum="75"
Orientation="Vertical"
... />
The Heading slider is bound to the viewmodel’s Heading
property.
Moving either slider updates the viewmodel, which updates the Map
control.
3.144.121.45