MapDownloaderTask in Windows Phone

MapDownloaderTask is a Launcher that lets the Windows Phone users to download the map for offline usage.

The MapDownloaderTask opens the Map Downloader settings where the user can select the place of the map to download.

Below is a sample sourcecode demonstrating MapDownloaderTask in Windows Phone

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using PhoneApp2.Resources;
using Microsoft.Phone.Tasks;

namespace PhoneApp2
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            MapDownload();

        }
        // SK - Download Map for Offline data
        private void MapDownload()
        {
            try
            {
                MapDownloaderTask map = new MapDownloaderTask();
                map.Show();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

        }

    }
}

The Show method of the MapDownloaderTask will launch the Map Downloader settings. The users can select the region to download.

In the Downloaded Maps Application, tap Add button in the Application bar.

Select the Continent

Select the Country

Select the Region

Click the download button in the Download Map Confirmation screen.

The download of the map for the selected region should begin in some time 🙂

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the Win32 Error “0x000019E5 – ERROR_COULD_NOT_RESIZE_LOG” that you get when debugging system erors in...
In this post, you’ll learn about the error “CO_E_DBERROR 0x8004E02B” that is returned when working with COM based APIs or...
In this post, you’ll learn about the Win32 Error “0x000019D0 – ERROR_LOG_BLOCK_VERSION” that you get when debugging system erors in...