Class ExportVectorTilesTask
A task used to export vector tiles and optionally a portal item's vector tile style resources.
Inheritance
Implements
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 API key that allows your app to access ArcGIS location services and private portal items. |
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
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.2.1 - 200.5 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.5 |