Tutorial: Create an offline map

Fieldwork takes you and your mobile workers places without a data connection, but that shouldn’t stop you from using your GIS data. You can make a map that doesn’t require the internet, and you can use it on your device in the field. You can use ArcGIS Field Maps or a custom app built with ArcGIS AppStudio or ArcGIS Maps SDKs. In this tutorial, you’ll learn how to do the following:

  • Build a map that can be used offline (without a data connection)
  • Use the map anonymously in ArcGIS Field Maps

Prerequisite

To complete this tutorial, you must have the ArcGIS Publisher extension.

Find and open the project

The data used in this tutorial is available as a project package that can be downloaded from ArcGIS Online through ArcGIS Pro. The publicly available data is from the United States Geological Survey (USGS).

  1. On the ArcGIS Pro start page, click Open another project Open another project.
  2. On the Open Project dialog box, under Portal Portal, click ArcGIS Online ArcGIS Online.
    Note:

    If you see ArcGIS Enterprise ArcGIS Enterprise listed instead, you must set your active portal to ArcGIS Online.

  3. At the top of the dialog box, in the Search box, type Make Offline Map example and press Enter.
  4. Select the project package and click OK.
    If there is more than one project package with this name, look at the Owner column. Select the item with the owner name mark_nitro.

    The project downloads and opens with two maps: Operational and VTPK_Source_BM.

Explore the sample project

Explore the two maps in the project—Operational and VTPK_Source_BM—to get a sense of the data being shared in the mobile map package. The two maps are linked, and as you zoom and pan around one map, the other map updates to display the same extent and scale level.

  1. Click the Operational map to activate it.

    The Operational map consists of places, points, and areas of interest. The layers in this map provide searchable and clickable features for your offline map. You can author the Operational map to allow your map users to search for features by attributes and to tap features to see pop-ups.

  2. Click the VTPK_Source_BM basemap to activate it.

    The VTPK_Source_BM map shows the boundaries for Yellowstone National Park and Grand Teton National Park. The information in this map provides background reference data for the operational layers. Layers in the basemap are only for visualization. Users of the offline map can't access attributes through a pop-up or search for features in the basemap. If there are layers in this map that you want users to interact with, move them to the Operational map.

  3. Click the Operational map, click the Map ribbon, click the Basemap drop-down menu Basemap, and select the VTPK_Source_BM basemap.

    The Operational map now shows the VTPK_Source_BM basemap below the operational layers.

  4. Pan and zoom around the map to familiarize yourself with the basemap and operational data. This gives you context for how the operational layers work with the basemap layers.

    If you do not see labels, click the refresh button Refresh to refresh the map view.

Create a vector tile package

Best practices for efficient offline maps require basemaps that are composed of vector tile packages (.vtpk) for vector data and tile packages (.tpk) for raster data. Here, you'll use vector tiles for the basemap. Although vector tile packages are not required, they are recommended to improve drawing performance and are especially useful for basemaps, as vector tile packages do not provide access to attributes or user interaction with features.

You can create an offline map of all of the content of the map; however, it's common to create an offline map or multiple offline maps for a subsection of an existing map. For example, you may have a map of the entire United States, but you are only interested in making an offline map for a specific city. With that in mind, you'll make an offline map for only a portion of this map, the Grand Teton National Park.

  1. Click the VTPK_Source_BM basemap and zoom to the extent of Grand Teton National Park.
  2. Right-click the basemap in the Contents pane and click Properties Properties.
  3. On the Extent tab, click Use a custom extent, and click Current visible extent from the Get extent from menu.

    The geoprocessing tool used to create a vector tile package creates vector tiles for the map's defined extent.

  4. On the Metadata tab, enter a description for the basemap and click OK.

    The Create Vector Tile Package geoprocessing tool fails if the input map is missing a description.

  5. Click Full Extent Full Extent on the Map ribbon to verify that the map's extent is what you expect.
  6. On the Analysis ribbon, click Tools Tools.

    The Geoprocessing pane appears.

  7. Search for Vector tile package and click Create Vector Tile Package.

    The Create Vector Tile Package tool dialog box appears.

  8. Click the Input Map drop-down menu and choose VTPK_Source_BM.
  9. Specify a known location and file name for Output File.
  10. Uncheck Package for ArcGIS Online | Bing Maps | Google Maps.

    To use the ArcGIS Online | Bing Maps | Google Maps tiling scheme, the input map must be in the Web Mercator Auxiliary Sphere projection. To avoid reprojecting data that is in North American 1983, uncheck Package for ArcGIS Online | Bing Maps | Google Maps.

    The tiling scheme is automatically populated with a tiling scheme using the projection of the input map.

  11. Leave the rest of the input parameters unchanged.
  12. Click Run Run.

    When a tool is executed, a progress bar is displayed in the Geoprocessing pane where you can view tool progress and messages. Tools can be completed with warnings. Errors indicate that the tool failed. See Progress and messages for more information.

    A vector tile package of the VTPK_Source_BM basemap is created. You will consume this vector tile package in the empty basemap.

Set the vector tile package as a basemap

To consume the vector tile package as a basemap, you'll add the package to an empty basemap and set the Operational map to use the vector tile basemap.

  1. On the Insert tab, in the Project group, click the New Map drop-down arrow and click New Basemap New Basemap.

    A new blank map view opens.

  2. On the Map ribbon, click Add Data Add Data.
  3. Browse to the vector tile package you created in the previous section and click OK.
  4. Click the Operational map, click the Map ribbon, click the Basemap drop-down menu Basemap, and select the Basemap basemap that now contains the vector tile package.

    The basemap of the Operational map is now updated to the Basemap basemap.

  5. In the Contents pane, right-click the Basemap layer and click Zoom to Layer Zoom To Layer.

    The map extent matches the basemap and is the study area you will be sharing for offline use.

Enhance map usability

To make your offline map more user friendly, you will include search functionality and bookmarks. Search can be accomplished through either feature search or a locator. You'll complete both workflows.

Note:

Different apps support different types of search functionality. Both are supported in ArcGIS Field Maps. These options are also available to developers using the ArcGIS AppStudio app or ArcGIS Maps SDKs app.

Feature search

To allow users to search for a feature, complete the following steps:

  1. On the Map ribbon, click Locate Locate.

    The Locate pane appears. The locators associated with your active portal are listed. These are not accessible for offline map users or users you share the map with who are not members of your organization.

  2. On the Locate tab, click the Options button Options and click Provider Settings. Click the Configure for Locate button Configure Locate Provider.

    The Select Layer or Table dialog box appears. All feature layers in your map are listed.

  3. To allow users to find mountain peaks, select TowerSummitMinesDam and click OK.

    Many of the operational layers in this map reference the same point feature class, Geonames USA. A layer definition query is used to group varying Geonames Point of Interest types.

    The Locate pane updates to display the Configure for Locate pane. All fields in the layer are listed in the pane and can be configured for search.

  4. If necessary, set the Search Mode for FEATURE_NAME to Contains. This returns search results for all features in the TowerSummitMinesDam layer that contain the characters searched for by the map user.

    If you choose Equals instead, the user must enter the exact string that matches the FEATURE_NAME attribute.

  5. Click the Save and return to Provider Settings button Save and return to Settings to return to Provider Settings.
  6. TowerSummitMinesDam is now listed under Provider Settings. Uncheck the locators provided by your organization and click the Back to Locate pane button Save and return to Settings to return to the Locate tab. Use the Search text box to test the feature search on the TowerSummitMinesDam layer.
    1. Search for Grand Te and notice the feature Grand Teton is returned in the search results.

Locator

Create a locator using the following steps:

  1. Open the Geoprocessing pane. If it is not already open, you can access it from the Analysis ribbon by clicking Tools Tools.
  2. Search for Create Locator and click Create Locator.

    The Create Locator tool dialog box appears.

  3. If necessary, click the Country or Region drop-down menu and select United States.
  4. Click the Primary Table(s) drop-down menu and select LocalePopPlace. Click the Role drop-down menu and select POI.
  5. Click the Place Name drop-down menu and select FEATURE_NAME.
  6. Specify a known location and file name for Output Locator.
  7. Click the Language Code drop-down menu and select English.
  8. Click Run Run.

    When a tool is executed, a progress bar is displayed in the Geoprocessing pane where you can view tool progress and messages. Tools can be completed with warnings. Errors indicate that the tool failed. See Progress and messages for more information.

    A locator based on the LocalePopPlace layer is created.

  9. Open the Locate pane and click the Options button Options to see that the locator is automatically added to the list of locators.
    1. If necessary, click the Locate tab and search for White Grass.

      Tip:
      You may need to check the Show all candidates check box.

    2. Notice that White Grass Ranch is returned in the search results.

Bookmarks

Bookmarks provide predefined, named extents that users can quickly zoom to. When sharing a mobile map package, your bookmarks are included in the offline map.

  1. Zoom in to one of the lakes within the study area.
  2. On the Map ribbon, click the Bookmarks drop-down menu Bookmarks and click New Bookmark New Bookmark.

    The Create Bookmark dialog box appears.

  3. Provide a name and description of the bookmark and click OK.

    The bookmark is added to your map.

  4. Add additional bookmarks as needed for areas that are expected to be highly trafficked.

Pop-ups

Pop-ups allow users to see information about features by tapping the features on the map. Pop-ups that you define in ArcGIS Pro are included in the offline map.

  1. In the Contents pane, right-click the buildings layer and click Enable Pop-ups Enable Pop-ups. If pop-ups are already enabled, skip to step 2.
  2. Right-click the layer again and click Configure Pop-ups Configure pop-ups.

    The Configure Pop-ups pane appears.

  3. By default, the pop-up includes all fields in the layer. You can click the edit button Edit Pop-up Element to edit the fields that are included in the element. To add elements to the pop-up, click the options at the top of the pane.

    For more information about configuring pop-ups, see Configure pop-ups.

Create and share the mobile map package

You authored your map to include operational layers with feature search and pop-ups, a basemap that uses vector tiles, bookmarks for access to common extents, and a locator for additional search. Now you can share it as a mobile map package.

  1. Click the Operational map if it is not already active, right-click the Basemap layer in the Contents pane, and click Zoom to Layer Zoom To Layer.
  2. On the Share ribbon, click Mobile Map New Mobile Map Package in the Package group.

    The Package Mobile Map pane appears. By default, the mobile map package is uploaded to your active portal. Leave this as the default.

  3. Provide a name for the map package. Use something unique so you can find it in ArcGIS Field Maps later.
  4. The metadata of the map is automatically used as the input for the Summary field. Add keywords to the Tags field to ensure users can find your package.
  5. Use the default extent option, Current Display Extent.

    Using an Area of Interest polygon feature class allows you to specify a custom extent for your offline map. For example, you can use a feature class that has polygon boundaries for the five largest metro areas in the United States.

  6. Check Clip.

    Checking Clip clips features that extend past your extent selection. Following the previous example, any features extending outside of the five largest metro areas in the United States would be clipped to the boundary of the metro areas. Locators that are included in the mobile map package are also limited to the chosen extent, ensuring users only find locations that are on the map.

    Note:

    The extent and clip options don't apply to the vector tile package. Regardless of these settings, the entire vector tile package is included in the package.

  7. Check Include Locator. Click the drop-down menu and select the locator you created.
  8. Leave the Reference online content option unchecked. If your map contains feature service layers, they will be referenced in the package for offline use. All other service layers are unsupported and will not be included.

    Checking Reference online content references service layers in the package. This includes service layers in your map for use on devices connected to the internet.

  9. If you have the ArcGIS Publisher extension, you can check Enable Anonymous Use.

    Anonymous use allows you to create mobile map packages for users who are not members of an ArcGIS organization. ArcGIS Field Maps can be used anonymously (without signing in), so users don't need an ArcGIS username to use the app. Enabling anonymous use allows mobile map packages to be downloaded and used by anyone with access to them, independent of their login credentials.

  10. Specify how the package will be shared:
    • Everyone—Share your content with the public. Anyone can access and see it.
    • My Organization—Share your content with all authenticated users in your organization. This option is available when you are signed in with an organizational account.
    • Groups—Share your content with groups to which you belong and their members.

    Leave all options unchecked to set the sharing level to the owner of the item.

  11. Under Finish Sharing, click Analyze Identify potential performance bottlenecks and errors to review for potential problems.

    Errors and warnings are listed on the Messages tab. Right-click a message to open its help topic or take corrective action in the software. Errors Error must be resolved before you can share your GIS resource. Resolving warnings Warning is recommended but not required.

    Learn more about analyzing GIS resources

  12. Once the package is validated, click Package to create the package.

Use the offline map in ArcGIS Field Maps

Now that you have created and shared your mobile map package, you'll consume it through ArcGIS Field Maps.

  1. Open the ArcGIS Field Maps app on your mobile device. Tap the Skip Sign In option.

    You are working as an anonymous user in ArcGIS Field Maps. If you did not share your package publicly or enable anonymous access, you cannot proceed.

  2. Search for the mobile map package you shared from ArcGIS Pro.
  3. In the search results, tap the download option next to your map.

    The map is downloaded to your device and is available in the On Device section of your list of maps.

  4. Tap the map to open it.

    The map opens to the extent you selected when creating the mobile map package.

  5. Tap the search button and search for Grand Teton.
  6. Tap the bookmark button for access to any bookmarks you authored, and click a bookmark to navigate to the given extent.
  7. Tap a feature to access a pop-up with information about that feature as defined in your pop-up configuration.

You have now authored a map for offline use in ArcGIS Pro using vector tiles, feature search, bookmarks, and pop-ups to create an efficient and useful offline map. You then shared this map as a mobile map package to your ArcGIS Online organization and consumed the package offline on your mobile device through ArcGIS Field Maps.