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 will learn about sync provider notifications in Windows 11 and how to disable or enable it...
In this tutorial, let’s learn how to enable or disable the startup sound in Windows 11. By default, when Windows...
The CameraCaptureTask allows the Windows Phone 7 App to launch the Camera Application . This will be useful when the...