Select to view content in your preferred language

Can I cache tiles from ESRI map services?

1680
3
04-02-2014 12:32 PM
MichaelBucari-Tovo
Deactivated User
I'm creating a field mapping app.  Many of the places where this app will be used will not have cell service, so I'll need to be able to cache map tiles.  I downloaded and ran the sample app from ESRI  https://developers.arcgis.com/android/sample-code/export-tile-cache/

It works with the sample map service, but it does NOT work with any of the services from this page :  http://services.arcgisonline.com/arcgis/rest/services

isExportTilesAllowed() returns true for the sample service layer, but false for the real services.  So do I need to license my app to be allowed to cache the other services, or are those services not allowed to be cached at all?

Thank you,
Michael
0 Kudos
3 Replies
RobertBurke
Esri Contributor
Michael,

Please have a look at the doc for the REST API:
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r30000025t000000

A note in there mentions that you should:
enable "Allow Clients to Export Cache Tiles" in advanced caching page of the Service Editor.

Please let me know of this was helpful.
0 Kudos
JustinColville
Esri Contributor
For using ArcGIS Online basemaps offline take a look at:

https://developers.arcgis.com/android/guide/create-an-offline-map.htm

In the "Include a Basemap" section it has a link to a group (http://links.esri.com/rtbasemaps) which list the services you need to use for taking a ArcGIS Online basemap offline.

These are hosted on http://tiledbasemaps.arcgis.com/ and you need to be part of an organization to use them.
0 Kudos
MichaelBucari-Tovo
Deactivated User
Yeah, I finally got it working.  I must say I'm a little disappointed that there's no progress updates.  Some of these caches can be very large, leaving the user with no idea when it will finish.  Also, the Random failures with no explanation are a tad annoying.
0 Kudos