| Name | Type | Description | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
|||||||||||||||||||||||||||||||||
Methods
-
Clones the style.
Returns:
The cloned style.
-
Get the stroke color.
Returns:
Color.
-
Get the line cap type for the stroke.
Returns:
Line cap.
-
Get the line dash style for the stroke.
Returns:
Line dash.
-
Get the line dash offset for the stroke.
Returns:
Line dash offset.
-
Get the line join type for the stroke.
Returns:
Line join.
-
Get the miter limit for the stroke.
Returns:
Miter limit.
-
Get the stroke width.
Returns:
Width.
-
Set the color.
Name Type Description colormodule:ol/color~Color | module:ol/colorlike~ColorLike Color.
-
Set the line cap.
Name Type Description lineCapstring | undefined Line cap.
-
Set the line dash.
Please note that Internet Explorer 10 and lower do not support the
setLineDashmethod on theCanvasRenderingContext2Dand therefore this property will have no visual effect in these browsers.Name Type Description lineDashArray.<number> Line dash.
-
Set the line dash offset.
Name Type Description lineDashOffsetnumber | undefined Line dash offset.
-
Set the line join.
Name Type Description lineJoinstring | undefined Line join.
-
Set the miter limit.
Name Type Description miterLimitnumber | undefined Miter limit.
-
Set the width.
Name Type Description widthnumber | undefined Width.