Open mobile map package

View inWPFUWPFormsiOSAndroid
View on GitHub

Display a map from a mobile map package.

Image of open mobile map package

Use case

An .mmpk file is an archive containing the data (specifically, basemaps and features) used to display an offline map.

How to use the sample

When the sample opens, it will automatically display the map in the mobile map package. Pan and zoom to observe the data from the mobile map package.

How it works

  1. Create a MobileMapPackage specifying the path to the .mmpk file.
  2. Load the mobile map package with mmpk.LoadAsync().
  3. After it successfully loads, get the map from the .mmpk and add it to the map view: mapView.Map = package.Maps.First();.

Relevant API

  • MapView
  • MobileMapPackage

About the data

This sample shows points of interest within a Yellowstone Mobile Map Package hosted on ArcGIS Online.


mmpk, mobile map package, offline

Sample Code

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns=""
    <esriUI:MapView x:Name="MyMapView"/>