Cache Layer from ArcGIS Server ?

2245
3
10-09-2012 04:18 AM
BrianOconer
New Contributor
Hi

How can i cache a "ArcGISTiledMapServiceLayer" or "ArcGISDynamicMapServiceLayer" from an ArcGIS Server on the SD-Card.
The App will also work offline.

Example:
ArcGISTiledMapServiceLayer layer = new ArcGISTiledMapServiceLayer("http://server/ArcGIS/rest/services/MyMap/MapServer");


Ideas ?
0 Kudos
3 Replies
deleted-user-ATjHIWsdQYmT
Occasional Contributor III
Hi

How can i cache a "ArcGISTiledMapServiceLayer" or "ArcGISDynamicMapServiceLayer" from an ArcGIS Server on the SD-Card.
The App will also work offline.

Example:
ArcGISTiledMapServiceLayer layer = new ArcGISTiledMapServiceLayer("http://server/ArcGIS/rest/services/MyMap/MapServer");


Ideas ?


Take a look at this sample:
http://resources.arcgis.com/en/help/android-sdk/concepts/index.html#/Local_Tile_Layer_Sample/0119000...

Looks like what you have to do is pre-cache your service, then copy it to the SD Card.  I think the sample will provide greater detail when you open it.
0 Kudos
DanO_Neill
Occasional Contributor III
The sample referenced by Andrew is a good example of how the Android API leverages local Map Tile Packages.  Another example can be found at here.  You can generate tiles from a map document in a single compressed .tpk file, here is a link to the ArcGIS 10.1 Help system for creating the Map Tile Packages.
0 Kudos
JessicaSena
New Contributor
Hi,

I'm new at arcgis runtime for android, and I have some questions about the offline mode.

Reading the previous answers, I guess there is no way to store the cache tiles "on the fly"... I mean is if it is possible to create the compact cache data according to the requests done at the every moment and store it to access when the device is offline...

Or the only way to work in offline mode would be to create a tiled cache service, with which we could create a compact data package that we should download and store in the sd card in order to use it?

Thanks in advance,
0 Kudos