ExportVectorTilesTask.withPortalItem constructor

ExportVectorTilesTask.withPortalItem(
  1. 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.uri 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.

Parameters:

  • portalItem — A portal item instance.

Implementation

factory ExportVectorTilesTask.withPortalItem(PortalItem portalItem) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ExportVectorTilesTask_createWithPortalItem(
        portalItem._handle, errorHandler);
  });
  return ExportVectorTilesTask._withHandle(handle);
}