Map Explorer application demonstrates how to use the new Windows Phone 8 Map control replacing the Bing Maps control used in Windows 7, as well as how to use new map-related features, such as address search, locationing, and routes. Map Explorer is a simple Silverlight application which enables the user to change properties of the map component to see the effect on shown map.
The example has been developed with Silverlight for Windows Phone devices and tested to work on Nokia Lumia devices with Windows Phone 8.
This example application is hosted in GitHub: https://github.com/nokia-developer/map-explorer
For more information on implementation and porting, visit Nokia Lumia Developer's Library: http://developer.nokia.com/Resources/Library/Lumia/#!code-examples/map-explorer.html
Version 1.1.0.0: Support for downloading maps. Mapping APIs T&C compliance.
- Usage
This is a simple build-and-run solution. Learn about Map properties and Map related features by trying out the application.
- Prerequisites
- C# basics
- Windows 8
- Microsoft Visual Studio Express for Windows Phone 2012
- Project structure and implementation
- The root folder contains the project file, the license information and this file (release_notes.txt).
MapExplorer
: Root folder for the implementation files.Assets
: Graphic assets like icons and tiles.Properties
: Application property files.Resources
: Application resources.
File | Description |
---|---|
MainPage.xaml |
The main page of the application with its most important component, the map. |
MainPage.xaml.cs |
The code-behind file of the main page. |
Class | Description |
---|---|
MainPage |
This class is responsible for all the map related functionality of the app. |
- Microsoft.Phone.Maps.Controls
- Microsoft.Phone.Maps.Services
- System.Device.Location
- Windows.Devices.Geolocation
- Compatibility
- Windows Phone 8
Tested to work on Nokia Lumia 820 and Nokia Lumia 920. Developed with Microsoft Visual Studio Express for Windows Phone 2012.
ID_CAP_LOCATION
ID_CAP_MAP
ID_CAP_NETWORKING
ID_CAP_SENSORS
None.
- Building, installing, and running the application
Make sure you have the following installed:
- Windows 8
- Windows Phone SDK 8.0
- Open the SLN file: File > Open Project, select the file MapExplorer.sln
- Select the target 'Emulator WVGA'.
- Press F5 to build the project and run it on the Windows Phone Emulator.
Please see official documentation for deploying and testing applications on Windows Phone devices: http://msdn.microsoft.com/en-us/library/gg588378%28v=vs.92%29.aspx
- License
See the license text file delivered with this project. The license file is also available online at https://github.com/nokia-developer/map-explorer/blob/master/Licence.txt
- Related documentation
An article "Guide to the Maps" published on Nokia Lumia Developer's Library (http://www.developer.nokia.com/Resources/Library/Lumia/#!guide-to-the-maps.html) describes the properties and usage of map control and map-related features in detail using MapExplorer as an example.
- Version history
- 1.1.0.0 Support for downloading maps. Mapping APIs T&C compliance.
- 1.0.0.0 First release.