Show / Hide Table of Contents

Method CreateAsync

CreateAsync(Uri)

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

Declaration
public static Task<ExportVectorTilesTask> CreateAsync(Uri serviceUri)
Parameters
Type Name Description
System.Uri serviceUri

The URL of a service or portal item to be used for exporting vector tiles.

Returns
Type Description
System.Threading.Tasks.Task<ExportVectorTilesTask>

The task object representing the asynchronous create operation. The value of the task result is an ExportVectorTilesTask object.

Remarks

The serviceUri can be for:

  • 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.

If the serviceUri represents a PortalItem that can be used to download vector tiles or style resources, the PortalItem property will be populated.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7

CreateAsync(Uri, String)

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

Declaration
public static Task<ExportVectorTilesTask> CreateAsync(Uri serviceUri, string apiKey)
Parameters
Type Name Description
System.Uri serviceUri

The Uri of an ArcGIS REST service or portal item that supports vector tiles export.

System.String apiKey

The unique key generated from ArcGIS Developers website.

Returns
Type Description
System.Threading.Tasks.Task<ExportVectorTilesTask>

The task object representing the asynchronous create operation. The value of the task result is an ExportVectorTilesTask object.

Remarks

The given service must support vector tiles export.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.10 - 200.7
Xamarin.Android100.10 - 100.14
Xamarin.iOS100.10 - 100.15
UWP100.10 - 200.7

CreateAsync(PortalItem)

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

Declaration
public static Task<ExportVectorTilesTask> CreateAsync(PortalItem portalItem)
Parameters
Type Name Description
PortalItem portalItem

The PortalItem of service that supports vector tiles export.

Returns
Type Description
System.Threading.Tasks.Task<ExportVectorTilesTask>

The task object representing the asynchronous create operation. The value of the task result is an ExportVectorTilesTask object.

Remarks

The given PortalItem must represent a vector tile service that supports vector tiles export. This portal item can also contain custom style resources (see HasStyleResources) which can additionally be exported as an ItemResourceCache.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.