ExportVectorTilesTask

constructor(portalItem: PortalItem)

Initialize an export vector tiles task with a portal item of type com.arcgismaps.portal.PortalItemType.VectorTileService. If the portal item is not of type com.arcgismaps.portal.PortalItemType.VectorTileService the task will fail to load.

The portal item will reference a vector tile service and once the task is loaded the property ExportVectorTilesTask.url will be populated to the backing service.

This portal item can also contain custom style resources see ExportVectorTilesTask.hasStyleResources which can additionally be exported as ItemResourceCache.

Since

200.1.0

Parameters

portalItem

A portal item instance.


constructor(url: String)

Initialize an export vector tiles task with a URL to a vector tile service. The URL 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 com.arcgismaps.mapping.BasemapStyle

If the URL represents a com.arcgismaps.mapping.PortalItem that can be used to download vector tiles or style resources, the ExportVectorTilesTask.portalItem property will be populated when the task is loaded.

Since

200.1.0

Parameters

url

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