Tutorial: Create an offline-enabled web map

Learn how to use the Map Viewer to create an offline-enabled web map for your offline app.

An offline-enabled web map is a web map created with the Map Viewer, stored in ArcGIS, and then enabled for offline use in offline apps. The Map Viewer allows you to interactively style and configure maps by setting the basemap layer, data layers, layer styles, pop-up settings, and layer visibility ranges. To use the web map in an offline application, you can either download an offline map area from the offline map (ahead-of-time method) or request an area within the web map to be packaged as an offline map (on-demand method).

In this tutorial, you use the Map Viewer to create and save a web map using the Santa Monica parcels hosted feature layer. You will then use the ArcGIS portal to enable it for offline use.

Prerequisites

You need an ArcGIS Online or an ArcGIS Enterprise account to create and save web maps in Map Viewer.

Steps

Set the basemap layer

To create a web map with the Map Viewer, start by setting the basemap layer. Use the Navigation vector tile basemap layer.

  1. Open the Map Viewer and sign into your ArcGIS account.

  2. In the left-panel, click Layers > Add.

    • Click the My content dropdown and select ArcGIS Online.
    • In the search box, type World Navigation Map (for Developers).
    • Click on the resulting Tile Layer from Esri Vector Maps, then click Use as basemap.
  3. In the left-panel, click Layers to close the window.

Set focus to an area of interest

To specify the viewpoint of the map to an area of interest, use the magnifier icon and set the map properties to preserve map scale.

  1. In the bottom right panel, click the magnifier icon.

  2. Type in Santa Monica in the search field and hit enter. This will set your map focus to an area of interest, which, in this case, is the city of Santa Monica, California.

  3. In the left panel, click Map properties.

  4. Under Map view, toggle on the Preserve map scale. This will ensure that the map focus stays on the city of Santa Monica, California, even after you close the web map.

Add data layer

To display data in your web map, you can add the Santa Monica parcels feature layer hosted in your portal that has been offline-enabled. If you choose to use your own hosted data layer, make sure you enable the layer for offline use.

  1. In the left panel, click + Add > Add layer from URL.
  2. Copy and paste the URL https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Santa_Monica_public_parcels/FeatureServer.
  3. Click Add to map.

Save the web map

Now that you have a web map, you need to save it to your portal.

  1. In the left panel, click Save > Save as. At minimum, you need to provide a title and tags for your web map.

By default, your web map sharing level is set to Owner. Later, you will need an access token that is scoped to access the web map item for use in your offline app.

Enable web map for offline use

  1. In your web browser, find the item ID at the end of the URL for the web map you just saved.

    • For example: 8ab76e9c5352400d87ca3315db9ba08e
  2. In a new browser tab, copy and paste the following URL and insert your item ID. This will return the item page for your web map, where you can configure it for offline use.

  3. Click Settings on the top bar of the item page. Settings

  4. Scroll down to the Offline menu. Offline section

  5. If you don't see the Offline enabled icon at the top right corner, click Check Compatibility and turn on Offline.

  6. Optionally, you can also manage advanced offline settings for your web map by clicking Options. These settings allow you to choose what data or updates mobile devices get and use a tile package for your offline basemap.

  7. Click Save. Your web map is enabled for offline use now.

What's next?

Learn how to use the offline-enabled web map to create an offline map area or to use in an offline application.

Create an offline map area

Use your portal to create an offline map area from an offline-enabled web map.


Display an offline map on demand

Download and display an offline map for a custom area of a web map stored in ArcGIS.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.