ExportTileCacheParameters

The parameters that specify how a tile cache (.tpkx) is exported from an ArcGIS map or image service using an ExportTileCacheJob. To generate parameters populated with values from the underlying service, call ExportTileCacheTask.createDefaultExportTileCacheParameters(Geometry, Double, Double). You can then modify these parameters with any desired changes. Alternatively, you can generate an empty set of parameters using ExportTileCacheParameters.ExportTileCacheParameters() and set the parameters individually.

Before you export the tiles you should ensure that your device has sufficient space for the tile cache. Generate an EstimateTileCacheSizeJob by passing the parameters to ExportTileCacheTask.createEstimateTileCacheSizeJob(ExportTileCacheParameters). Run this job to obtain an estimate of the tile cache size found in the EstimateTileCacheSizeResult.

To export the tile cache, create an ExportTileCacheJob, pass the parameters to the ExportTileCacheTask.createExportTileCacheJob(ExportTileCacheParameters, String) method and provide a path where the .tpkx file can be downloaded to on the device.

You can also use the ExportTileCacheParameters to provide more fine-grained control over the tiles that are exported when an offline map is generated. For more information, see the GenerateOfflineMapParameterOverrides class.

Since

200.1.0

Constructors

Link copied to clipboard
constructor()

Creates a new export tile cache parameters instance.

Properties

Link copied to clipboard

Area of interest geometry. May be set to null to specify retrieval of the full tile cache extent. The supported geometry types for the area of interest are Envelope and Polygon. The area of interest must have a spatial reference. Where a Polygon is supplied, tiles will be filtered according to the polygon geometry, which can help reduce the size of the resulting tile package. Note that the filtered set of tiles may vary, depending on the underlying service.

Link copied to clipboard

The compression quality. Compression quality is a value from 0 to 100 or NaN. A lower number reduces the size of the exported tile package, but reduces the quality. This applies to JPEG format tiles. If the value is NaN the service will use its default compression quality. The default compression value for the service is accessible on the services metadata under TileInfo.compressionQuality.

Link copied to clipboard

Level IDs.

Functions

Link copied to clipboard