Map Explorer is an example application demonstrating how to use the new Windows Phone 8 Maps API replacing the Bing Maps used in Windows Phone 7.x.
Перейти к файлу
Tomi Paananen 0c3d73cc23 Update README.md 2014-11-28 14:36:55 +02:00
MapExplorer Updated copyright notices. 2014-11-21 15:44:46 +02:00
doc Added screenshot. 2013-10-30 11:16:14 +02:00
.gitignore Added T&C compliance 2013-06-24 17:33:40 +03:00
Licence.txt Updated copyright notices. 2014-11-21 15:44:46 +02:00
MapExplorer.sln Initial commit of MapExplorer 2012-09-04 09:54:04 +03:00
README.md Update README.md 2014-11-28 14:36:55 +02:00

README.md

Map Explorer

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 Lumia devices with Windows Phone 8.

Screenshot

This example application is hosted in GitHub: https://github.com/Microsoft/map-explorer

For more information on implementation and porting, visit Lumia Developer's Library: http://developer.nokia.com/Resources/Library/Lumia/#!code-examples/map-explorer.html

What's new

Version 1.1.0.0: Support for downloading maps. Mapping APIs T&C compliance.

  1. Usage

This is a simple build-and-run solution. Learn about Map properties and Map related features by trying out the application.

  1. Prerequisites

  • C# basics
  • Windows 8
  • Microsoft Visual Studio Express for Windows Phone 2012
  1. Project structure and implementation

3.1 Folders

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

3.2 Important files and classes

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.

3.3 Used APIs/Windows Phone Components

  • Microsoft.Phone.Maps.Controls
  • Microsoft.Phone.Maps.Services
  • System.Device.Location
  • Windows.Devices.Geolocation
  1. 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.

4.1 Required Capabilities

  • ID_CAP_LOCATION
  • ID_CAP_MAP
  • ID_CAP_NETWORKING
  • ID_CAP_SENSORS

4.2 Known Issues

None.

  1. Building, installing, and running the application

5.1 Preparations

Make sure you have the following installed:

  • Windows 8
  • Windows Phone SDK 8.0

5.2 Using the WINDOWS PHONE 8 SDK

  1. Open the SLN file: File > Open Project, select the file MapExplorer.sln
  2. Select the target 'Emulator WVGA'.
  3. Press F5 to build the project and run it on the Windows Phone Emulator.

5.3 Deploying to Windows Phone 8

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

  1. License

See the license text file delivered with this project. The license file is also available online at https://github.com/Microsoft/map-explorer/blob/master/Licence.txt

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

  1. Version history

  • 1.1.0.0 Support for downloading maps. Mapping APIs T&C compliance.
  • 1.0.0.0 First release.