identifyLayersCancelable method

CancelableOperation<List<IdentifyLayerResult>> identifyLayersCancelable(
  1. {required Offset screenPoint,
  2. required double tolerance,
  3. int? maximumResultsPerLayer = 1}
)

Cancelable version of identifyLayers. See that method for more information.

Implementation

CancelableOperation<List<IdentifyLayerResult>> identifyLayersCancelable(
    {required Offset screenPoint,
    required double tolerance,
    int? maximumResultsPerLayer = 1}) {
  final coreScreenPoint = screenPoint.toArcGIS();
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeoView_identifyLayersWithMaxResultsNullable(
        _handle,
        coreScreenPoint.ref,
        tolerance,
        maximumResultsPerLayer,
        errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsList()!);
}