Class ExportTileCacheJob
A job that exports a tile cache (.tpk or .tpkx) from a map or image service.
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Tasks.Offline
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ExportTileCacheJob : Job<TileCache>
Remarks
To make an ExportTileCacheJob, use the ExportTileCacheTask as follows:
- Confirm that the map or image service can export tiles by checking ExportTilesAllowed for the legacy format and ExportTileCacheCompactV2Allowed 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 CreateDefaultExportTileCacheParametersAsync(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 ExportTileCache(ExportTileCacheParameters, String). 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
Methods
Name | Description |
---|---|
FromJson(String) | Creates a job from JSON. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
Relevant samples
Export tiles: Download tiles to a local tile cache file stored on the device.