selectFeature method

void selectFeature(
  1. Feature feature
)

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

Selected features are rendered according to the GeoViewController.selectionProperties.

Parameters:

  • feature — The feature.

Implementation

void selectFeature(
  Feature feature,
) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_FeatureLayer_selectFeature(
      _handle,
      feature._handle,
      errorHandler,
    );
  });
}