How to use the MapDownloader task for Windows Phone 8

July 21, 2014

Applies to: Windows Phone 8 and Windows Phone Silverlight 8.1 | Windows Phone OS 7.1

Use the map downloader task to enable users to download map data for offline use. The task launches the Maps settings application which allows the user to select a region of map data to download.

By using Launchers, you help provide a consistent user experience throughout the Windows Phone platform. For more information, see Launchers and Choosers for Windows Phone 8.

To use the map downloader task

  1. Add the following statement to your code.

    
    Imports Microsoft.Phone.Tasks
    
    
    
  2. Add the following code to your application wherever you need it, such as in a button click event. To test this procedure, you can put the code in the page constructor. This is the code to launch the task.

    
    Dim mapDownloaderTask As MapDownloaderTask = New MapDownloaderTask()
    mapDownloaderTask.Show()
    
    
    

Show:
© 2014 Microsoft