Downloading Maps for Offline Use

New to Windows Phone 8 is the capability to download maps for offline use. The built-in Map app allows the user to download maps that are stored locally on the device. If the user has not pre-downloaded a map from the built-in Maps app, the Map control downloads map information as the user manipulates the control, which requires an active Internet connection.

You can launch the Map app to allow the user to select a map to download using the MapDownloaderTask launcher located in the Microsoft.Phone.Tasks namespace, as shown in the following example:

MapDownloaderTask mapDownloaderTask = new MapDownloaderTask();mapDownloaderTask.Show();

The sample’s MapViewModel contains a DownloadMapCommand ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.