ExportVectorTilesTask.withUri constructor

ExportVectorTilesTask.withUri(
  1. Uri uri
)

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.

Parameters:

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

Implementation

factory ExportVectorTilesTask.withUri(Uri uri) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ExportVectorTilesTask_createWithURL(
        coreURI.bytes, errorHandler);
  });
  return ExportVectorTilesTask._withHandle(handle);
}