ol.style.Stroke

new Stroke

Stability: experimental
Parameters:
Name Type Argument Description
options olx.style.StrokeOptions <optional>

Options.

Properties
Name Type Description
color ol.Color | string | undefined

Color.

lineCap string | undefined

Line cap style: butt, round, or square. Default is round.

lineJoin string | undefined

Line join style: bevel, round, or miter. Default is round.

lineDash Array.<number> | undefined

Line dash pattern. Default is undefined (no dash).

miterLimit number | undefined

Miter limit. Default is 10.

width number | undefined

Width.

Source:
  • strokestyle.js, line 12

Methods

getColor

Stability: experimental
Source:
  • strokestyle.js, line 58
Returns:

Color.

Type
ol.Color | string

getLineCap

Stability: experimental
Source:
  • strokestyle.js, line 67
Returns:

Line cap.

Type
string | undefined

getLineDash

Stability: experimental
Source:
  • strokestyle.js, line 76
Returns:

Line dash.

Type
Array.<number>

getLineJoin

Stability: experimental
Source:
  • strokestyle.js, line 85
Returns:

Line join.

Type
string | undefined

getMiterLimit

Stability: experimental
Source:
  • strokestyle.js, line 94
Returns:

Miter limit.

Type
number | undefined

getWidth

Stability: experimental
Source:
  • strokestyle.js, line 103
Returns:

Width.

Type
number | undefined