O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required