Adds selection styling behavior to an existing painter.
The paintBody method is altered to apply the following styling modifications to selected Feature instances. Note that you can override this behavior using the options object literal.
strokeWidthis doubled. If the text was not originally stroked, it is stroked with
The paintLabel method is altered. It configures a halo with color
rgb(255,140,0) and width 2 to the label. The color can be overriden using
the options object literal.
The painter which must be enhanced with selection support.
selection styling options.
The enhanced painter passed to this method.