identifyGraphicsOverlayCancelable method

CancelableOperation<IdentifyGraphicsOverlayResult> identifyGraphicsOverlayCancelable(
  1. GraphicsOverlay graphicsOverlay,
  2. {required Offset screenPoint,
  3. required double tolerance,
  4. 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()!);
}