Types of mobile data sources

how offline app works
Different types of mobile data sources for offline apps

A mobile data source is a data format used to build offline apps using ArcGIS Maps SDKs for Native Apps. A mobile data source may contain a map or scene, layers, and other geospatial information packaged for offline use.

Mobile data sources include the following:

The mobile data source you use depends on your type of offline app. Partially offline apps support all four mobile data sources. Fully offline apps only support mobile packages and data files. This section provides an overview of each mobile data source and explains how to select a mobile data source for your offline app.

Offline maps

An offline map is a map downloaded from an offline-enabled web map. It also includes data content that is referenced by layers in the offline map. You can use an offline map in your partially offline app to display a map, edit features in a map, and synchronize them when you are back online.

To use an offline map, you begin with a web map that is enabled for offline use. The web map definition and the layer contents are then downloaded as an offline map which can be used without a network connection. The application can either download a geographic area that the web map's owner has already configured, also known as offline map areas, or specify an area of the web map to take offline in the code.

An offline map uses offline data behind the scenes. However, offline maps can automatically handle download and storage management for data content. On the other hand, if you work with offline data directly, you have to manage this yourself.

Offline data

Offline data is data that is generated and downloaded from an offline-enabled data service, such as the basemap styles service, feature services, vector tile services, and map tile services. You can use offline data in your partially offline app to display offline tile layers, feature layers, edit features or attachments offline, and synchronize them when you are back online.

To use offline data, you begin by publishing a data service and enable it for offline use. Then, you can request a geographic area covered within that service to be downloaded as offline data. There are two types of offline data that can be generated and downloaded:

  • Tile data: Other services listed above can generate a package file of read-only tiles, either a vector tile package (VTPK), or an image tile package (TPK).
  • Feature data: A feature service can generate a geodatabase file containing offline feature and non-spatial data. This data can be edited and edits can be synchronized with the source feature service when a network connection is available.

Mobile packages

A mobile package contains one or more maps or scenes. It also contains data content that is referenced by layers in the maps or scenes. You can use mobile packages in your partially offline app or fully offline app to display a map or scene, geocode, search for places, find routes and directions, and perform offline spatial analysis. However, mobile packages do not support editing features nor synchronizing.

To use a mobile package in an offline app, you begin by creating an ArcGIS Pro project containing maps or scenes, package them, then sideload or download the package to the device. There are two types of mobile packages that can be created using ArcGIS Pro:

  • Mobile map package (MMPK): This type of mobile package contains maps.
  • Mobile scene package (MSPK): This type of mobile package contains scenes.

Data files

A data file is a local file stored on a device that contains data that can be displayed by a layer in a map or scene. You can use data files in your partially offline app or fully offline app to display maps or scenes, edit data offline, and query features. Some data files support editing and querying, but some do not.

To use a data file in an offline app, you begin by creating a dataset and use tools, such as ArcGIS Pro, to process it into a data file format of your choice. You can also get data files using data conversion scripts or from the internet.

You can use the following types of data files in your offline app:

Data file typeSupports editing
ShapefileYes
Vector tile packageNo
Image tile packageNo
Scene Layer Package. For display in scenes only.No
Local raster file. The following raster formats are supported: ASRP/USRP, CIB, CADRG/ECRG, DTED, GeoPackage Raster, GeoTIFF/TIFF, HFA, HRE, IMG, JPEG, JPEG2000, Mosaic Dataset in SQLite, NITF, PNG, RPF, SRTM, CRF, and MrSID.No
OGC GeoPackage (feature data)Yes
OGC GeoPackage (raster data)No
OGC KML fileYes
Electronic Nautical Chart (S-57). For display in maps only.No
Other (e.g. GeoJSON)Yes

How to select a mobile data source

The following questions may help you decide which mobile data source to use in your offline app:

  1. Will your device have a network connection at all?

    Some offline apps are prohibited from accessing a network due to regulatory or operational reasons. If your offline app will never have access to a network connection, then it is a fully offline app. You can:

    • Sideload a mobile package of maps or scenes.
    • Sideload data files and construct a map or scene in code, then add layers from the sideloaded data files.

    You can work with an offline map or offline data without a network connection, but will need a network connection to initially download them and later to synchronize offline edits with the online source. Therefore, they are more suitable for partially offline apps.

  2. Do you need to edit data in a feature service?

    If your offline app needs to edit data hosted in a feature service, you can:

    • Download an offline map from a web map that includes a layer from the feature service.
    • Download offline data from feature services.
  3. Will you be working in 3D?

    If your offline app needs to use 3D scenes, you cannot use offline maps. Instead, you can either:

  4. Will you be geocoding or routing?

    If your offline app needs to perform geocodingor routing without a network connection, then you need to use mobile packages.

The flowchart below goes into greater detail about selecting a mobile data source for your offline app:

choose an approach flowchart
A flowchart to select the most suitable mobile data source for your offline app

Tutorials

Create an offline-enabled web map

Use Map Viewer and ArcGIS Online to create an offline-enabled web map.


Create an offline map area

Use ArcGIS Online or ArcGIS Enterprise to create an offline map area from an offline-enabled web map.


Create a mobile map package

Use ArcGIS Pro to create a mobile map package.


Workflows

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