selectFeatures method

void selectFeatures(
  1. {required List<Feature> features}
)

Selects the given features and adds them to the current collection of selected features.

Use the FeatureLayer.getSelectedFeatures: Future to retrieve all of the selected features.

Parameters:

  • features — A collection of features to be selected. Contents of the List are copied.

Implementation

void selectFeatures({required List<Feature> features}) {
  final coreFeatures =
      features.toMutableArray(valueType: _ElementType.feature);
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_FeatureLayer_selectFeatures(
        _handle, coreFeatures._handle, errorHandler);
  });
}