identifyGraphicsOverlaysCancelable method
Cancelable version of identifyGraphicsOverlays. See that method for more information.
Implementation
CancelableOperation<List<IdentifyGraphicsOverlayResult>>
identifyGraphicsOverlaysCancelable(
{required Offset screenPoint,
required double tolerance,
int? maximumResultsPerOverlay = 1}) {
final coreScreenPoint = screenPoint.toArcGIS();
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_GeoView_identifyGraphicsOverlaysWithMaxResultsNullable(
_handle,
coreScreenPoint.ref,
tolerance,
maximumResultsPerOverlay,
errorHandler);
});
return taskHandle
.toCancelableOperation((element) => element.getValueAsList()!);
}