Adds hover styling behavior to an existing painter.
The paintBody method is altered to apply the following styling modifications to
hovered Feature instances. Note that you can override
this behavior using the options object literal.
If a stroke was defined on the original styling object literal, the stroke color
is modified to rgb(0,140,255).
The stroke width is multiplied by 1.5.
If a fill was defined on the original styling object, the fill color is modified to
rgba(0,165,255,0.8).
In case of icon styles, the icon is scaled to 1.5 times the originally configure size.
If text is rendered on the GeoCanvas, it's
strokeWidth is multiplied by 1.5. If the text was not originally stroked, it is
stroked with rgb(0,140,255).
The paintLabel method is altered. It configures a halo with color
rgb(0,140,255) and width 2 to the label. The color can be overridden using
the options object literal.
Adds hover styling behavior to an existing painter.
The paintBody method is altered to apply the following styling modifications to hovered Feature instances. Note that you can override this behavior using the options object literal.
rgb(0,140,255)
.rgba(0,165,255,0.8)
.strokeWidth
is multiplied by 1.5. If the text was not originally stroked, it is stroked withrgb(0,140,255)
.The paintLabel method is altered. It configures a halo with color
rgb(0,140,255)
and width 2 to the label. The color can be overridden using the options object literal.