style
An object literal of style properties.
Declaration
style?: Style;Parameters
- options:
An optional object literal of style properties (defined below).
Discussion
The following table lists the available style properties:
Property | Summary |
|---|---|
| The stroke color of a line. This can be any valid CSS color value. The default value is |
| The opacity to apply to strokes as a number between |
| The line width of the stroke line for overlays, in CSS pixels. The default value is |
| The shape of the ends of the line. The three options for line endings are |
| The style to use when drawing joins between line segments. The three options are |
| An array to use as the line’s dash pattern where the numbers represent line and gap lengths in CSS pixels. For example, |
| The number of CSS pixels to offset drawing of the dash pattern. This has no effect if you set the |
| The color to use for filling shapes. This can be any valid CSS color value. The default fill color is |
| The opacity to apply to fills as a number between |
| The rule to use for determining whether a point is inside or outside a polygon. This can be either the nonzero winding rule ( |