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.
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.
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: ...