Styling options for addSelection and addHover.

Since

2021.0

Hierarchy

  • StyleMutationOptions

Properties

fillColor?: string

The fill color that must be used for the selected feature.

The default value for addSelection is rgba(255,165,0,0.8).

The default value for addHover is rgba(0,165,255,0.8).

iconScaleFactor?: number

Modifier for an icon's scale when it becomes selected.

The default value for addSelection is 2.

The default value for addHover is 1.5.

strokeColor?: string

The stroke color that must be used for the activated feature.

The default value for addSelection is rgb(255,140,0).

The default value for addHover is rgb(0,140,255).

strokeWidthScaleFactor?: number

Modifier for a feature's stroke width when it becomes activated.

The default value for addSelection is 2.

The default value for addHover is 1.5.

textHaloColor?: string

The color of the text halo for labels. Halos are not supported on IE9.

The default value for addSelection is rgb(255,140,0).

The default value for addHover is rgb(0,140,255).