Display a map from a mobile map package.
An .mmpk file is an archive containing the data (specifically, basemaps and features) used to display an offline map.
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.
- Create a
MobileMapPackage
specifying the path to the .mmpk file. - Load the mobile map package with
mmpk.LoadAsync()
. - After it successfully loads, get the map from the .mmpk and add it to the map view:
mapView.Map = package.Maps.First();
.
- MapView
- MobileMapPackage
This sample shows points of interest within a Yellowstone Mobile Map Package hosted on ArcGIS Online.
mmpk, mobile map package, offline