A job that exports a tile cache (.tpk or .tpkx) from a map or image service. More...
Header: | #include <ExportTileCacheJob.h> |
Since: | Esri::ArcGISRuntime 100.0 |
Inherits: | Esri::ArcGISRuntime::Job |
Public Functions
virtual | ~ExportTileCacheJob() override |
Esri::ArcGISRuntime::TileCache * | result() const |
Detailed Description
To make an ExportTileCacheJob, use the ExportTileCacheTask as follows:
- Confirm that the map or image service can export tiles by checking ArcGISMapServiceInfo::isExportTilesAllowed for the legacy format and ArcGISMapServiceInfo::isExportTileCacheCompactV2Allowed property for the compact version 2 format (.tpkx).
- Construct and load the ExportTileCacheTask with the map or image service.
- Create a Geometry to define the area of interest that you wish to take offline.
- Obtain the default ExportTileCacheParameters by calling ExportTileCacheTask::createDefaultExportTileCacheParametersAsync(const Esri::ArcGISRuntime::Geometry&, double, double) with the area of interest and a minimum and maximum scale for the tile cache.
- Use the ExportTileCacheParameters to create an ExportTileCacheJob by calling ExportTileCacheTask::exportTileCache(const Esri::ArcGISRuntime::ExportTileCacheParameters&, const QString&). You must specify a path to a folder where the tile cache will be stored on the device.
Start the ExportTileCacheJob and monitor progress. Upon completion, the job's result returns a tile cache.
See the Job class for full information on how to work with jobs.
Relevant samples:
- Export tiles: Download tiles to a local tile cache file stored on the device.
Member Function Documentation
[override virtual]
ExportTileCacheJob::~ExportTileCacheJob ()
Destructor.
Esri::ArcGISRuntime::TileCache *ExportTileCacheJob::result() const
Returns the TileCache created by the ExportTileCacheJob.
Obtain the TileCache once the job status changes to JobStatus::Succeeded. Connect to the Job::statusChanged signal to know when the job's status changes.