selectFeaturesWithQuery method

Future<FeatureQueryResult> selectFeaturesWithQuery(
  1. {required QueryParameters parameters,
  2. required SelectionMode mode}
)

Selects the features that match the criteria in the QueryParameters object and adds them to the current collection of selected features.

Parameters:

  • parameters — A query that defines features to select from the FeatureTable.
  • mode — Defines how the collection of currently selected features will be updated with the features returned from the query.

Return Value: A Future that returns a FeatureQueryResult.

Implementation

Future<FeatureQueryResult> selectFeaturesWithQuery(
    {required QueryParameters parameters, required SelectionMode mode}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_FeatureLayer_selectFeaturesWithQuery(
        _handle, parameters._handle, mode.coreValue, errorHandler);
  });
  return taskHandle
      .toFuture((element) => element.getValueAsFeatureQueryResult()!);
}