setViewpointScaleCancelable method
- {required double scale}
Cancelable version of setViewpointScale. See that method for more information.
Implementation
CancelableOperation<bool> setViewpointScaleCancelable(
{required double scale}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_MapView_setViewpointScaleAsync(
_handle, scale, errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsBool()!);
}