createDefaultGenerateOfflineMapParametersCancelable method
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()!);
}