Adjusting Pitch and Heading

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:

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.