Freigeben über


How to use the MapUpdaterTask for Windows Phone 8

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Use the map updater task to enable users to update map data they have previously downloaded for offline use. The task launches the Maps settings application, which immediately checks to see if there are updates available for any previously downloaded map data. If updates are available, the user can select which updates to download. To allow users to download map data initially, see How to use the MapDownloader task for Windows Phone 8.

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
    
    using 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 mapUpdaterTask As MapUpdaterTask = New MapUpdaterTask()
    mapUpdaterTask.Show()
    
    MapUpdaterTask mapUpdaterTask = new MapUpdaterTask();
    mapUpdaterTask.Show();
    

See Also

Reference

MapUpdaterTask