constructor(portalItem: PortalItem)

Initialize an export vector tiles task with a portal item of type PortalItemType.VectorTileService. If the portal item is not of type 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.



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 BasemapStyle

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