Vector Tiles Task
A task used to export vector tiles and optionally a portal item's vector tile style resources. Vector tiles are exported as a vector tile package (.vtpk) file, see VectorTileCache.
A portal item can contain a custom style resources overriding the vector tile services default style and this can be checked with ExportVectorTilesTask.hasStyleResources. The custom style is exported separately as an ItemResourceCache.
The export vector tiles task can be initialized with a URL using ExportVectorTilesTask.ExportVectorTilesTask(String). The URL 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 ExportVectorTilesTask.ExportVectorTilesTask(PortalItem).
When using Esri provided vector basemaps that do not support exporting tiles (such as the ArcGIS streets basemap - see BasemapStyle.ArcGISStreets), an alternative service that supports exporting tiles will be used instead.
Indicates if the task's portal item has any associated style resources that override the default style of the vector tile service. This property will be set to true if the export vector tile task has been loaded and the task's portal item has style resources. The portal item's style resources override the default style of the vector tile service and can be exported as ItemResourceCache.
The task's portal item which must be of type PortalItemType.VectorTileService. This property can only be set when the task is load status LoadStatus.NotLoaded or LoadStatus.FailedToLoad If the portal item is not of type PortalItemType.VectorTileService the task will fail to load. A vector tile service can be referenced by an item in a portal of type PortalItemType.VectorTileService. This item can also contain custom style resources see ExportVectorTilesTask.hasStyleResources which can be exported as ItemResourceCache.
Creates and returns the default parameters for the export vector tile task. This function is asynchronous because it makes use of the service metadata to populate the ExportVectorTilesParameters object. Calling this function will trigger the ExportVectorTilesTask to be loaded, unless it is already loaded.
Return a new export vector tiles job that will download a custom style from a portal item as an item resource cache. The job will return the item resource cache without a vector tile cache. This is useful when a number of different styles are applied to the same underlying vector tile service. This avoids exporting multiple copies of the same tiles.
Returns a new export vector tiles job that can be used to generate and download a vector tile package containing the vector tiles specified by the parameters (ExportVectorTilesParameters).
Return a new export vector tiles job that can be used to generate and download a vector tile package and return a custom style as an item. resource cache.