color
Colors the legend's border.
This property supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
- Paint server address
cornerRadius
Makes all the legend's corners rounded.
This property accepts a positive number that defines a quarter ellipse's horizontal and vertical radii which determine the corner's curvature.
dashStyle
Sets a dash style for the legend's border.
The following dash styles are available:
solid
The border is a solid, continuous line.longDash
The border is displayed using long dashes.dash
The border is displayed using dashes.dot
The border is displayed using dots.Any combination of 'longDash', 'dash' and 'dot'
The border is displayed by repeating the specified combination. For instance, 'dashdotdash'.
opacity
Specifies the transparency of the legend's border.
This property accepts a value from 0 to 1, where 0 makes the border completely transparent, and 1 makes it opaque.