ArcGIS Online Basemaps: Creating a Tile Cache for Offline Use

32080
30
03-23-2015 09:26 AM
JenniferLink
New Contributor III

Hello,

At the Developer Summit this year, I saw that you should now be able to take the ArcGIS Online Basemaps (such as the World Street Map), and export an area of interest to a tile cache that an application can use offline.  Does anyone know where I would find this information?

Thanks,

Jen

30 Replies
JenniferLink
New Contributor III

Hello everyone,

And thanks for all the information you provided, it was very helpful in tracking down the options available to me. To sum up, I was looking for a tool to download ArcGIS Online basemap tiles so that I could side load a tile package (.tpk) file onto an ArcGIS Runtime for .NET application prior to deployment.

I ended up contacting ESRI support, and they confirmed your responses. At this time, there is no tool available to download ArcGIS Online basemap tiles prior to deploying a .NET Runtime application. The tiles must be requested and downloaded directly from the .NET Runtime application.

The following link provides sample code that uses the ExportTileCache class to make the request from the Runtime application. Export Tile Cache | ArcGIS for Developers

Thanks again everyone for your help!

DougBrowning
MVP Esteemed Contributor

10.1 will let you make a Tile Package of any online layer including ESRI basemaps.  I keep a old machine around just for this.  I have gone up to a 9 gb tpk with no issues (we use this one unpacked though since it is faster).  This was taken out due to "licensing" I heard and was supposed to be put back in at 10.3.1 but it was not. 

We use a 3rd party product that lets us use 80+ tpk files and turn them on and off like layers (not just for basemap).  It also lets us use a SD Card so we can carry around 30+GB of tpks covering all our area.  In testing the sd card was just as fast if not faster than internal.  Really hope Collector gets this at some point.

PaulFerro
New Contributor

What is the 3rd party product you are using? Thanks in advance.

0 Kudos
DougBrowning
MVP Esteemed Contributor

Not sure if I can post that here but you have no PM info in your profile so....  It is MobileMap by Mason Bruce & Girard - talk to Kerry Halligan he is the developer (they are a Esri partner and it does use the Esri API).

If you go with it let me know and maybe I can share some of the scripts I use to build all the TPKs each weekend.  I have 4 or 5 open Esri bugs on the TPK tools so I can help with the tricks needed.

Christian__Smitty_Smith
New Contributor III

@ Doug Browning   I would love to talk with you about the scripts, tips and tricks you have on building TPKs.  I have a dedicated 10.1 instance on a VM  and have started the process of building out TPKs for my org. What is the best way for us to get together? 

0 Kudos
DougBrowning
MVP Esteemed Contributor

I set my profile so that you can see my email now.  Happy to help.

0 Kudos
DougBrowning
MVP Esteemed Contributor

Just wanted to post this funny info.

Survey123 is now allowing you to use any TPK or tile cache from a SD Card.  So one group in Esri says no while another says sure!  Imagine if we could ever get the different groups in Esri to talk to each other.......

See the bold and underline below.  I tested it and it works - just pointed it to the directory of TPKs I already have on my SD Card.  My large imagery TPK is a bit slow but Survey123 said it should find unzipped ones also (which is what we do for speed in our other app) - it does not so I am asking them on that.

--------------

Whats new in this release

Survey123 now supports the use of offline basemaps. These basemaps must be of the Esri file type of tile package and web mercator projection. Tile packages can be created using ArcGIS Desktop or ArcGIS Pro.

Note:Currently there are many manual steps required to use basemaps in your survey. It is expected that a more streamlined process will be added, but we wanted to make the functionality available as soon as possible. This topic will be updated as the user experience of including basemaps in your survey, evolves. 

Create a map tile package

You can create a map tile package using ArcGIS Desktop or Pro. Once created you can copy it directly to your device for use in Survey123 or share it in ArcGIS for others to use.

To create a map tile package:

Launch ArcGIS Pro. < li>Open an existing map or create a new map. Ensure your map has a suitable name and description. To edit these, right click the map in the table of contents, and choose properties.

In Toolbox, choose the Create Map Tile Package tool and enter the input map name and the output file name.

Input map name and output file name are the minimum requirements for this tool. You can optionally enter other properties.

Run the Create Map Tile Package tool.

A new .tpk will be created in your chosen output location. To use this file in Survey123 you can upload it to ArcGIS to share with others, or manually copy it to your device. Copy your tile package directly to your device

If you do not have internet connectivity or are unable to connect to ArcGIS, you can copy your tile package directly to your device, or use it from an external storage card.

To copy your tile package directly to your device:

Connect to your device If you are using an iOS device, you will need to use iTunes.

Copy you .tpk to your ~\ArcGIS\My Surveys\Maps folder. For example, on Windows this would be C:\Users\UserName\ArcGIS\My Surveys\Maps.

If you already had Survey123 open before copying, restart Survey123.

To use your tile package from an external storage card:

Copy your tile package to your storage card and place the card in your device.

Launch Survey123 on your device and on the My Surveys menu, choose Settings .

Nominate an additional Map Library Folder that represents your storage card. The default path of ~/ArcGIS/My Surveys/Maps will already be shown. You can add additional paths by - Typing the additional path directly into the edit box (use a semi colon to separate paths). - Use the folder browser to select an additional path. Any path selected will be appended to your Map Library Folder.

When you next open a survey that has the map append property set to true, tile packages on your storage card will be appended to the list of available basemaps

SteveFang
New Contributor III

Hi Andy,

This 100,000 number is that configurable via ArcGIS Server?  I didn't realize the tile package was returning up to 100,000 tiles from the World Street Map service.  I got the offline function working but it was missing tiles from the last few zoom levels.  Lucky I checked the forum.

Steve

0 Kudos
AnttiKajanus1
Occasional Contributor III

From my understanding, you can configure the max number of the tiles returned. You can think it similar setting than max rows returned on queries. Just see server documentation for that.

Also remember that when providing large TPK areas to offline applications, you can create application that splits specific extent to multiple tpks and then side load those to the application. In application side, you need to create functionality to load these tpks though but that shouldn't be too involving. This approach also gives better control/update workflow for tiles since you can update only specific regions if needed.

0 Kudos
JohnDaues1
New Contributor

Is there an example for Android comparable to this .net example?

0 Kudos