Overview

You will learn: how to create and share a mobile map package in order to consume data offline with the ArcGIS Runtime SDKs.

You can use ArcGIS maps and data even if your application won't have a network connection. Uses for offline data include navigation and geocoding using private assets, custom asset locators, and custom road networks. One way of preparing data for offline use is by reformatting the maps and layers you want to work with into a Mobile Map Package (.mmpk). An .mmpk is a compressed read-only file format which can include basemaps, feature data, map definitions, routing models and a geocoder. Maps from an .mmpk can be displayed with a couple of lines of code using the ArcGIS Runtime. In this lab, you'll use ArcGIS Pro to create a simple mobile map package of LA County trails and trailheads with a vector tile basemap. This package will be utilized in later DevLabs to create apps for offline use.

If you do not have access to ArcGIS Pro, you can download the finished mobile map package here. Some ArcGIS Developer Subscriptions include ArcGIS Pro. You can also start a 60 day free trial of ArcGIS Pro.

Steps

Add items to your ArcGIS Online account

  1. Go to ArcGIS Online and sign in.

  2. Click Content. Once on the Content page, click Add Item > From the web

  3. Add each of the following layer urls. For each layer, select the ArcGIS Server web service type.

  4. Download the Los Angeles vector tile file (.vtpk) here.

Set up your project in ArcGIS Pro

  1. Launch ArcGIS Pro. Click Create a New Project > Blank.

  2. Click Insert tab in the Project Group. Then click New Map > New Basemap.

  3. In the new basemap, click + Add Data > Data. In the resulting pop-up, navigate to the Los Angeles vector tile file you downloaded earlier and add it to the basemap.

  4. Save your new basemap.

  5. Click the Insert tab in the Project Group. Then click New Map > New Map.

  6. Set the new map's basemap to the Los Angeles vector tile basemap you just saved.

  7. In the new map, click + Add Data > Data. In the resulting pop-up, navigate to Portal > Content to add the three LA County layers to the map.

Create the mobile map package file

  1. Click on the Analysis tab in the Geoprocessing > Tools. The Geoprocessing pane should appear. Type Create Mobile Map Package and click this tool in Search Results.

  2. In the Output File field, type an output location and name for your package file.

  3. Zoom the map to your desired map extent. In the Geoprocessing pane, set Extent to Current Display Extent.

  4. Check the Clip Features checkbox.

  5. Fill in the following fields as desired: Title, Summary, Description, Tags, Credits, and Use Limitations.

  6. Click Run. It may take a few minutes to generate the mobile map package. It will be saved in the directory you requested above.

Congratulations, you're done!

Your finished mobile map package should be saved as an .mmpk file on your hard drive.

Challenge

Multiple maps

Try creating a mobile map package using multiple map files.

Explore the Living Atlas in ArcGIS Pro

At the top of the Project pane, click Portal > Living Atlas to explore content hosted on the Living Atlas. Experiment with adding different items to an ArcGIS Pro project.

Share your mobile map package in ArcGIS Online

Use the Geoprocessing Tools in ArcGIS Pro to share your .mmpk with your ArcGIS Online account or with your organization. Hint: use the search bar to find the Share Package tool.