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