Configure your web map and data for offline use and define the offline map areas that will be packaged and downloaded by your app. This is called the ahead-of-time workflow because you are defining the offline map areas before you take the map offline in your app.
Prerequisites
- You need an ArcGIS Online or ArcGIS Enterprise account.
- You need to complete Step 1. Create a web map.
Steps
Configure offline use
-
If you used the Santa Monica Parcels feature layer in your map, enable it for offline use.
- In the feature layer item page, go to Settings tab > Feature layer (hosted).
- Check Enable sync (required for offline use and collaboration).
- Click Save.
-
In your web browser, find the item ID
An item ID is a unique identifier representing a single item stored, managed, and accessed in a portal, such as a web map, hosted layer, or file. at the end of the URL for the web map you saved.- Example:
4c4c3a28388446a19278b3a17051730e
- Example:
-
Open a new browser tab and go to the following URL, replacing
<ITEMwith your item ID:_ID > https://www.arcgis.com/home/item.html?id= <ITEM _ID > - Example:
https://www.arcgis.com/home/item.html?id=4c4c3a28388446a19278b3a17051730e
-
Click Settings on the item page.
-
Scroll to the Offline section.
-
If you do not see the Offline enabled label, click Check compatibility and turn on Offline.
-
Click Save. Your web map is now enabled for offline use.
Draw offline map areas
Now, you are going to define areas in your web map that you want to take offline, also known as offline map areas
-
Under Offline Map Areas, click Manage Offline Areas.
-
In the left panel, click Create offline area.
-
Draw an offline area on the map. You have two options to do this:
- To draw a box around the area to take offline, click the Sketch rectangular map area button and draw a box on the map.
- To draw a polygon to define the area you need to take offline, click the Sketch polygon map area button and draw the polygon on the map.
Manage offline map area settings
After defining your offline map areas, you can configure settings such as name, level of detail, and packaging schedule. Then, you will save the offline map area and an offline map package will be generated. This package can then be downloaded and used by your app.
-
In the Name field in the left panel, type a descriptive name for the offline map area.
-
Open the Level of detail setting to change the quality and resolution of the downloaded raster or vector tile layers. You can move the slider to the right for more detail or to the left for less detail. Make sure that the small triangle icon is included in the scope of your slider.
Set a level of detail that is appropriate for the offline map area you create. If the level of detail is too great (for example, you set the level of detail to Streets but your offline map area is the size of Spain), you'll receive a warning indicating you must either reduce the offline map area or decrease the level of detail.
-
Open the Packaging schedule section to set the interval and time that you want the offline map area packages to be refreshed to capture changes to feature layer data. If you don't want to set an automatic refresh schedule, select Never from the drop-down menu.
-
Open the Optimizations section to create offline map area packages for read-only use. Then, switch on the Enable packaged updates toggle button. Read-only packages are created based on the schedule you set in the previous step.
-
Click Save.
The new offline map area appears in the Offline map areas list with a badge indicating the area is being packaged. Packaging can take several seconds or minutes, depending on the size of the data being packaged.
Packaging will fail if the size of the offline map area, when packaged, is larger than 2.5 GB. If packaging fails, try sketching a smaller area to include in the offline map package. If the map contains feature layers that have attachments, you can exclude attachments from the offline package to decrease the package size. If the map includes tile layers, you can decrease the size of the offline map area by adjusting the level of detail to include less detail.
-
To create more offline areas for this map, click Create offline area and repeat the previous steps starting from Draw offline map areas. You can create up to 16 offline map areas per web map.