exportVectorTiles method

ExportVectorTilesJob exportVectorTiles(
  1. {required ExportVectorTilesParameters parameters,
  2. required Uri downloadFileUri}
)

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).

Parameters:

  • parameters — specifying which tiles to include in the vector tile package.
  • downloadFileUri — The file path where the vector tiles will be saved on disk, including the desired file name ending with the .vtpk file extension.

Return Value: A new ExportVectorTilesJob to export the vector tiles from a service.

Implementation

ExportVectorTilesJob exportVectorTiles(
    {required ExportVectorTilesParameters parameters,
    required Uri downloadFileUri}) {
  final coreDownloadFileUri = _CString(downloadFileUri.toFilePath());
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ExportVectorTilesTask_exportVectorTiles(
        _handle, parameters._handle, coreDownloadFileUri.bytes, errorHandler);
  });
  return ExportVectorTilesJob._fromHandle(objectHandle)!;
}