Show / Hide Table of Contents

Class ExportVectorTilesTask

A task used to export vector tiles and optionally a portal item's vector tile style resources.

Inheritance
Object
ExportVectorTilesTask
Implements
IApiKeyResource
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Tasks.Offline
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ExportVectorTilesTask : IApiKeyResource
Remarks

Vector tiles are exported as a vector tile package (.vtpk) file, VectorTileCache. A portal item can contain custom style resources overriding the vector tile services default style and this can be checked with HasStyleResources. The custom style is exported separately as an ItemResourceCache.

The export vector tiles task can be initialized with a Uri using CreateAsync(Uri). The Uri can be to:

  • A vector tile server that ends in "VectorTileServer" and is the REST end-point used to export vector tile packages. The vector tile service must be enabled for export or the task will fail to load.
  • A portal item for a vector tile service or a vector tiled layer with a custom style applied.
  • A vector basemap layer created using a BasemapStyle.

Alternatively a PortalItem, referencing a vector tile service or a custom style for a vector tiled layer, can be used with CreateAsync(PortalItem).

When using Esri provided vector basemaps that do not support exporting tiles (such as the ArcGIS streets basemap - ArcGISStreets), an alternative service that supports exporting tiles will be used instead.

Properties

Name Description
ApiKey

Gets or sets the unique key generated from ArcGIS Developers website.

HasStyleResources

Gets a value indicating whether the task's associated PortalItem has style resources that override the default style of the vector tile service.

PortalItem

Gets the task's portal item which must be of type VectorTileService.

Uri

Gets the Uri for exporting vector tiles.

VectorTileSourceInfo

Gets the VectorTileSourceInfo associated with the task's vector tile service.

Methods

Name Description
CreateAsync(PortalItem)

Initializes a new instance of the ExportVectorTilesTask class from the given PortalItem.

CreateAsync(Uri)

Initializes a new instance of the ExportVectorTilesTask class from a vector tile service.

CreateAsync(Uri, String)

Initializes a new instance of the ExportVectorTilesTask class from a vector tile service.

CreateDefaultExportVectorTilesParametersAsync(Geometry, Double)

Creates default ExportVectorTilesParameters.

ExportStyleResourceCache(String)

Creates a new ExportVectorTilesJob for downloading only the ItemResourceCache containing the vector tiles custom style resource cache. The VectorTileCache itself is not downloaded.

ExportVectorTiles(ExportVectorTilesParameters, String)

Creates a new ExportVectorTilesJob for downloading a VectorTileCache.

ExportVectorTiles(ExportVectorTilesParameters, String, String)

Creates a new ExportVectorTilesJob for downloading a VectorTileCache and any custom vector tile styles as ItemResourceCache objects.

See Also

ExportTileCacheJob

Applies to

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.2.1 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.2.1 - 100.15
iOS100.2.1 - 100.15
UWP100.2.1 - 200.0
In This Article
Back to top Copyright © 2022 Esri.