Local Tile Layer Sample

Complexity: Beginner Data Requirement: ArcGIS Tutorial Data for Desktop

Local Tile Layer

The purpose of this sample is to demonstrate the consumption of data stored on the sdcard. The data should be a tiled cache. You can download a sample dataset from ArcGIS Online. Open the archive locally and copy the data to your device's SDCARD.

Sample Design

The sample contains only one layer ArcGISLocalTiledLayer which is added to the MapView. The data for the layer is stored on the SDCARD.

So how does one create the data? Using ArcGISServer you can publish a tiled service, which publishing the service a tiled cache is created. Once the user has created this tiled cache, it can be placed on the phone SDCARD and will be read by the ArcGISLocaltiledLayer.

How to use the sample

Steps:
  1. Open up the LocalTiledLayer.java source file.
  2. Set the path to the data as file:///mnt/sdcard/Parcels/v101/Parcel Map
  3. Save the source file.
  4. Launch the sample on your device.
  5. The local data from SDCARD should load into the MapView.
1/24/2013