identifyGraphicsOverlayCancelable method
- GraphicsOverlay graphicsOverlay,
- {required Offset screenPoint,
- required double tolerance,
- int? maximumResults = 1}
Cancelable version of identifyGraphicsOverlay. See that method for more information.
Implementation
CancelableOperation<IdentifyGraphicsOverlayResult>
identifyGraphicsOverlayCancelable(GraphicsOverlay graphicsOverlay,
{required Offset screenPoint,
required double tolerance,
int? maximumResults = 1}) {
final coreScreenPoint = screenPoint.toArcGIS();
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_GeoView_identifyGraphicsOverlayWithMaxResultsNullable(
_handle,
graphicsOverlay._handle,
coreScreenPoint.ref,
tolerance,
maximumResults,
errorHandler);
});
return taskHandle.toCancelableOperation(
(element) => element.getValueAsIdentifyGraphicsOverlayResult()!);
}