O'Reilly logo

Windows Phone 8 Game Development by Marcin Jamro

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

Map screen

The Map screen consists of a header and a map that shows players that are in the vicinity. The user should be able to zoom in and zoom out of the map, show or hide landmarks and information for pedestrians, as well as change the cartographic mode to aerial, hybrid, road, or terrain. In this section, you will create this screen according to the MVVM design pattern.

View

A design of the screen is prepared in the MapPage.xaml file (in the Views directory). The Map control can be added to the page from the Toolbox window or by adding the Map element to the XAML code manually.

Tip

To use the Map control, do not forget to choose the ID_CAP_MAP capability in the manifest file.

The selected parts of the XAML code are presented and described as follows: ...

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