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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.5 |
.NET | 100.14 - 200.5 |
.NET Windows | 100.14 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.14 - 200.5 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.5 |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.10 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.10 - 200.5 |
Xamarin.Android | 100.10 - 100.14 |
Xamarin.iOS | 100.10 - 100.15 |
UWP | 100.10 - 200.5 |
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
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 |