You will learn: how to create a mobile map package file with a basemap and layers using ArcGIS Pro.
If you want to create an application that can display a map without a network connection, a mobile map package can be created using ArcGIS Pro. A mobile map package (
.mmpk) organizes the basemaps, feature data, and map definitions of your map, along with routing models and a geocoder, into a single a compressed file. These files can be used to display maps and access data offline with applications built using the ArcGIS Runtime SDKs.
In this tutorial, you'll use ArcGIS Pro to create a simple mobile map package that contains layers and a vector tile basemap for the trailheads, trails, and parks near the Santa Monica mountains. This package is used to build offline applications. To learn more, see the Add layers to a map (offline) tutorial.
The first step to creating a mobile map package is to assemble the
Go to ArcGIS Online and sign in.
In the top menu, click Content > Add Item > From Web. In the Add Item from the web window, set the following values to add the Trailheads layer:
Use the URLs below and repeat the steps above to add the Trails and Parks and Open Spaces layers to ArcGIS Online. Be sure to use unique titles and tags for each layer.
To use a
The next step is to set up the map in ArcGIS Pro. This generally means adding the
Start ArcGIS Pro. Under New, click Start without a template.
On the main ribbon, click the Insert tab and then New Map > New Basemap to create a new map.
In the Map tab, click + Add Data > Data and navigate to the LosAngeles.vtpk vector tile file you downloaded earlier. Click Ok to select the file and add it to the basemap.
In the Map tab, click Locate and type
Mahou Riviera in the search box and then hit the enter key. This will zoom the map to the location of the basemap. Zoom in and out to explore the extent.
In the Contents window, right click Basemap > Save as a map file and save the basemap as
In the main ribbon, click the Insert tab and then New Map > New Map to create a new map.
In the Map tab, click Basemap and click the
basemap you just saved. It will be at the bottom of the window.
In the Map tab, click + Add Data > Data. In the dialog, click Portal > My Content > Trailheads to add the layer to the map. Click Ok to close the window.
Use the same steps above to add Trails and Parks and Open Space to the map.
In the Map tab, click Locate and type
Mahou Riviera in the search box and then hit the enter key. This will zoom the map to the correct location.
The last step is to use a geoprocessing tool to generate the mobile map package. In this case you will clip the layers out that fall within the current visible extent of the map.
In the main ribbon, click the Analysis tab and then Tools.
On the right side of the application in the Geoprocessing window, type
Create Mobile Map Package. Click the first tool in the search results.
In the Create Mobile Map Package tool, set the following properties:
Current Display Extent(Ensure the map is zoomed to the area you want to package. e.g. Mahou Riviera)
Mahou Riviera Map Package
Santa Monica mountain trails and park.
A mobile map package for trails and parks for the Santa Monica mountain area.
Santa Monica, Trails, Parks
Click Run to create the mobile map package.
Your finished mobile map package should be saved as an
offline-maps-package.mmpk file on your hard drive. The file should contain the trailheads, trails, parks, and the topographic vector tile basemap for the area south of the Santa Monica mountains.
Go to the Add layers to a map (offline) tutorial and build an application that can use your mobile map package and run offline.
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.
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.