If you want to apply a distinct feature styling to distinguish selected features from non-selected features, you can choose between 2 options:
addSelectionfunction from the
FeaturePainterUtilmodule to add selection behavior to your
FeaturePainter. Although you are limited in options with this choice, it is a quick and easy way to equip a
FeaturePainterwith selection behavior.