HomeWindowsMapDownloaderTask in Windows Phone

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

This blog post will guide you through several effective methods to troubleshoot and resolve the issue of Microsoft Edge not...
Windows 11 offers a range of audio enhancements that can enrich your listening experience. These enhancements include features like virtual...
Windows 11 brings a fresh and visually stunning design to your desktop, and one of the standout features is the...