Export Tile Cache Parameters
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. 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. 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 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 com.arcgismaps.tasks.offlinemaptask.GenerateOfflineMapParameterOverrides class.
Since
200.1.0
Constructors
Properties
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 com.arcgismaps.geometry.Envelope and com.arcgismaps.geometry.Polygon. The area of interest must have a spatial reference. Where a com.arcgismaps.geometry.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.
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 com.arcgismaps.mapping.layers.TileInfo.compressionQuality.
Level IDs.
Functions
Clones the ExportTileCacheParameters.