O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required