createDefaultGenerateOfflineMapParametersCancelable method

CancelableOperation<GenerateOfflineMapParameters> createDefaultGenerateOfflineMapParametersCancelable(
  1. {required Geometry areaOfInterest,
  2. double minScale = 0.0,
  3. double maxScale = 0.0}
)

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

Implementation

CancelableOperation<GenerateOfflineMapParameters>
    createDefaultGenerateOfflineMapParametersCancelable(
        {required Geometry areaOfInterest,
        double minScale = 0.0,
        double maxScale = 0.0}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_OfflineMapTask_createDefaultGenerateOfflineMapParametersWithAreaOfInterestMinScaleMaxScaleAsync(
            _handle,
            areaOfInterest._handle,
            minScale,
            maxScale,
            errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsGenerateOfflineMapParameters()!);
}