Overview

MobileMap utilizes two broad categories of data - operational data and base map data.  Operational data are stored in ArcGIS Feature Services and contain the data model for collecting and editing data.  These data are uploaded and downloaded from the feature service when a user is online.  Base map data, on the otherhand, are read-only data layers that provide background imagery and related data (e.g., ownership boundaries, streams, roads, etc.).  MobileMap supports a range of file formats for base map data, including Esri Tile Packages (TPK), Esri Compact Tile Caches (CTC), MBTiles databases (MBTiles), Shapefiles (SHP) and Comma Separated Value (CSV) files.  The most common formats used in MobileMap are TPK and SHP, and creation of these files are described in the sections below.

Esri Tile Packages (TPK) are tiled images stored at multiple zoom levels.  The zoom levels follow the standard Esri/Google/Bing tiling system which is best described here .  This tiling system uses the Web Mercator projection and zoom levels range from 1 (lowest resolution, whole earth stored in 4 tiles that are 256 pixels x 256 pixels each) to 23 (highest resolution, each pixel represents 1.87 cm of the Earth's surface).  There are several ways to create TPKs, including in ArcMap, ArcGIS Pro and MobileMap.  The sections below describe the process for creating TPKs in ArcMap and MobileMap.

NOTE:  The TPK format is very similar to Esri's lesser known Compact Tile Cache (CTC format) mentioned above.  In fact, a TPK is merely a Zipped folder containing a CTC, along with some related metadata.  In the early days of of MobileMap (circa 2013) we routinely converted TPK file extensions to .zip, unzipped them, and extracted the CTC.  There are small performance gains from using these unzipped data.  In recent years, with the advances in mobile device hardware, we have not found this step to be necessary.  If you are using very large TPKs and seeing a performance issue when loading or panning base map data, reach out to our support team for instructions on how to create and use CTCs instead of the easier to use TPK format.

Map Extent and Default TPK

The first base map loaded into MobileMap will set the extent of the map. When more than 1 base map is used, it is important that the first map that is loaded covers the FULL extent of ALL base maps. The easiest way to do this is to create a ‘default’ folder and store a single large, low-resolution TPK (within a subfolder named ‘TPK’). When MobileMap loads, it will first load all TPKs in the ‘default’ folder and will set the map extent to that large area base map. It will then load all of the TPKs and Shapefiles in the selected project folder. For example ‘default’ TPK could be of the world or State your project is in. You want the extent to be large enough to cover all possible areas you might work.

Zoom Levels

MobileMap Directory Structure

         

MobileMap Root Directory

Map Cache Directory (OR or WA)

SHP Folder Structure

TPK Folder Structure

Creating TPKs in MobileMap

Note: Starting at MobileMap version 4.3.39, this functionality is available for organizations that use Portal for ArcGIS, but this requires a few configuration steps to be completed by your Portal administrator. To learn more, see the section on Base Maps in MobileMap: Using Portal for ArcGIS

MobileMap includes a Download Base Map tool as a convenient method for obtaining base map data, including imagery and topo maps.  When downloading TPKs from the Download Base Map tool, MobileMap is accessing the 'export' function from Esri's base map services.  This functionality is limited to a maximum number of tiles, and there are additional practical limits on total file size of an exported TPK file.  Keep in mind that the size of a TPK is a function of the extent and the maximum zoom level.  For large base maps (e.g., high resolution imagery for a whole county or state) use ArcMap and an imagery source that you have local access to (e.g., a download of NAIP data).  If you need high resolution data for a demo or small project, use this approach and a high zoom level (e.g., 19) but limit the spatial extent of your download to a very small area.  If you want to have a large basemap just to serve as a frame of reference, use a large extent but limit the maximum zoom level to a very low level (e.g, 6 or 8).  While there is no hard rule on the maximum extent or zoom level combinations that are supported, we have found that TPKs larger than 100 MB in size do not always create or download properly when downloaded from within MobileMap.  To be safe, try to limit the size of downloaded TPKs to under 50 MB.

In addition to the caveats above, there is one additional problem with TPKs generated via this tool - they include a maximum zoom level parameter in their metadata.  This parameter causes the TPKs to disappear if you zoom in beyond that zoom level.  So, rather than getting pixelated or blurry, they simply disappear.  In many cases this is not the desired behavior.  TPKs created in ArcMap (process described above) do not have this limitation.  If you want to use the Download Base Map tool in MobileMap but do not want your TPK to disappear at higher zoom level, there is an optional step that can be performed to remove this maximum resolution parameter from the TPK file, but it is a bit complicated.  See the optional instructions at the bottom of this section for more details.

To create TPKs in MobileMap use the Download Base Map tool by following these steps:

  1. Sign in to ArcGIS (Actions > SIGN IN TO ARCGIS)

  2. Open the Download Base Map tool (Actions > Download Basemap)

  3. Select the layer you would like to download from the dropdown list

  4. Pan and zoom the map to the desired extent

  5. Select the maximum zoom level that you would like to download.

  6. Select DOWNLOAD

Watch YouTube Video:

https://youtu.be/PM22J1or1RM

Fixing the Overzoom

Optional - If you want to use the Download Base Map tool in MobileMap but do not want your TPK to disappear at higher zoom levels as described above, follow the steps below:

Creating TPKs in ArcMap

NOTE:  As of ArcMap version 10.2, it is no longer possible to create tile packages (TPKs) that contain ArcGIS Online hosted base maps or any other streaming sources such as NAIP imagery.  Prior to ArcMap 10.2 (e.g., ArcGIS 10.1) it was possible to include these data as inputs to tile packages.

From ArcPro, you are able to create TPKs from streaming sources other than ArcGIS Online hosted data, such as NAIP streamed from the APFO’s public ArcGIS Server.

Steps for creating a TPK in ArcMap

 

         

           

Creating TPKs in ArcPro

The general steps for creating TPKs in ArcPro are the same, but the specific tool is slightly different. To being, follow the steps above to add the content to your map, then use the Geoprocessing tab and search for Create Map Tile Package. It is important to select this exact tool and not the vector tile or mobile map package tools. Once the tool is opened, complete the following:

  1. Select your active map

  2. Select the output filename (e.g., LocationA_Imagery_L16.tpk)

  3. Select minimum level of detail (choose 0 here)

  4. Select maximum level of detail (as noted above level 16 or 17 is recommended for forestry work)

  5. Enter summary and tags (optional, not used by MobileMap)

  6. Select the extent (typically the current map extent)

  7. Choose package type (only ‘tpk’ supported at this time within MobileMap)

Image below shows example of completed inputs ready to be run:

To add streamed NAIP Imagery from the APFO’s public ArcGIS Server to ArcPro and cache it:

  1. On the Insert tab, select Add Connections > Server > New ArcGIS Server

  2. Paste this web address into the Server URL box and save: https://gis.apfo.usda.gov/arcgis/rest/services

  3. Load the CONUS NAIP imagery from the Catalog window (under the Servers folder) into a map

  4. Zoom to an area of interest, save the map

  5. Run the Create Map Tile Package tool with .tpk as the output format (see above)

Note, esri supplied reference data (not imagery) can be cached over NAIP imagery if road/place names on top of the imagery is desired.

Caching Custom Imagery in Arc Pro

Imagery acquired for a project and stored locally on a computer (not streamed from an online source) can be cached in Arc Pro via the following instructions.

• Load rasters to mosaic dataset (dataset can be in Web Mercator even if rasters are not). In the past, imagery has needed to be projected to Web Mercator prior to caching. As of Arc Pro 3.x, imagery does not projected Web Mercator, as long as the data frame coordinate system is set to Web Mercator prior to caching.
• Build Pyramids and Calculate Statistics as you load rasters in the mosaic dataset.
• Once the mosaic dataset has been created. Open the Attribute table of mosaic dataset from pro and field calculate Max PS (Max Pixel Size to something like 1000 or 5000).
• Open the properties of the mosaic dataset from catalog and change number of rasters to display in the properties from 20 to the number you have in the dataset
• Use the Mosaic Layer properties (ribbon button) to display “none” on the stretch type
• This should give you a color balanced, nice looking, raster image in Pro – cache this
• You can use the Mosaic Layer properties (ribbon button) to apply the Color Infrared version