Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.43 KB

File metadata and controls

37 lines (23 loc) · 1.43 KB

Export tiles

Download tiles to a local tile cache file stored on the device.

Image of export tiles

Use case

Field workers with limited network connectivity can use exported tiles as a basemap for use offline.

How to use the sample

Pan and zoom into the desired area, making sure the area is within the red boundary. Tap the 'Export tiles' button to start the process. On successful completion you will see a preview of the downloaded tile package.

How it works

  1. Create an ExportTileCacheTask, passing in the URI of the tiled layer.
  2. Create default ExportTileCacheParameters for the task, specifying extent, minimum scale and maximum scale.
  3. Use the parameters and a path to create an ExportTileCacheJob from the task.
  4. Start the job, and when it completes successfully, get the resulting TileCache.
  5. Use the tile cache to create an ArcGISTiledLayer, and display it in the map.

Relevant API

  • ArcGISTiledLayer
  • ExportTileCacheJob
  • ExportTileCacheParameters
  • ExportTileCacheTask
  • TileCache

Additional information

ArcGIS tiled layers do not support reprojection, query, select, identify, or editing. Visit the ArcGIS Online Developer's portal to learn more about the characteristics of ArcGIS tiled layers.

Tags

cache, download, export, local, offline, package, tiles