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.
Go to ArcGIS Online and sign in.
Click Content. Once on the Content page, click Add Item > From the web
Add each of the following layer urls. For each layer, select the ArcGIS Server web service type.
Download the Los Angeles vector tile file (.vtpk) here.
Launch ArcGIS Pro. Click Create a New Project > Blank.
Click Insert tab in the Project Group. Then click New Map > New Basemap.
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.
Save your new basemap.
Click the Insert tab in the Project Group. Then click New Map > New Map.
Set the new map's basemap to the Los Angeles vector tile basemap you just saved.
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.
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.
In the Output File field, type an output location and name for your package file.
Zoom the map to your desired map extent. In the Geoprocessing pane, set Extent to Current Display Extent.
Check the Clip Features checkbox.
Fill in the following fields as desired: Title, Summary, Description, Tags, Credits, and Use Limitations.
Click Run. It may take a few minutes to generate the mobile map package. It will be saved in the directory you requested above.
Your finished mobile map package should be saved as an .mmpk file on your hard drive.
You will learn how to create and run a basic ArcGIS Pro solution configuration.
You will learn how to create and run a basic ArcGIS Pro add-in.
You will learn how to create an ArcGIS Pro add-in with a custom map identification tool.
You will learn how to create an ArcGIS Pro feature construction tool.
Try creating a mobile map package using multiple map files.
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.
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.