createDefaultExportTileCacheParametersCancelable method

CancelableOperation<ExportTileCacheParameters> createDefaultExportTileCacheParametersCancelable(
  1. {required Geometry areaOfInterest,
  2. required double minScale,
  3. required double maxScale}
)

Cancelable version of createDefaultExportTileCacheParameters. See that method for more information.

Implementation

CancelableOperation<ExportTileCacheParameters>
    createDefaultExportTileCacheParametersCancelable(
        {required Geometry areaOfInterest,
        required double minScale,
        required double maxScale}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_ExportTileCacheTask_createDefaultExportTileCacheParametersAsync(
            _handle,
            areaOfInterest._handle,
            minScale,
            maxScale,
            errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsExportTileCacheParameters()!);
}