identifyGraphicsOverlaysCancelable method

CancelableOperation<List<IdentifyGraphicsOverlayResult>> identifyGraphicsOverlaysCancelable(
  1. {required Offset screenPoint,
  2. required double tolerance,
  3. int? maximumResultsPerOverlay = 1}
)

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