Show / Hide Table of Contents

Method ExportTileCache

ExportTileCache(ExportTileCacheParameters, String)

Start and return a new export tile cache job.

Declaration
public ExportTileCacheJob ExportTileCache(ExportTileCacheParameters parameters, string downloadFilePath)
Parameters
Type Name Description
ExportTileCacheParameters parameters

Export tile cache parameters to be used in exporting.

String downloadFilePath

Downloaded tile cache file path that ends with .tpk or .tpkx, depending on the desired format.

Returns
Type Description
ExportTileCacheJob

A task offline job of type TileCache.

Remarks

The resulting job will export tiles from the service, referenced by the Uri property (or its export-enabled alternative), to a local tile cache at the downloadFilePath. The format of the tile cache is determined by the file extension supplied in the downloadFilePath parameter.

If the download file path ends with ".tpk" the tile cache will use the legacy compact format.

If the download file path ends with ".tpkx" the tile cache will use the current compact version 2 format.

If the service does not support exporting tiles, the job will fail with TileCacheCompactV2ExportNotEnabledException.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0
Relevant samples
Export tiles: Download tiles to a local tile cache file stored on the device.
In This Article
Back to top Copyright © 2022 Esri.