Module: ol/style/Stroke

ol/style/Stroke


Classes

Stroke

Type Definitions

Options{Object}

Properties:
Name Type Argument Default Description
color module:ol/color~Color | module:ol/colorlike~ColorLike <optional>

A color, gradient or pattern. See module:ol/color~Color and module:ol/colorlike~ColorLike for possible formats. Default null; if null, the Canvas/renderer default black will be used.

lineCap string <optional>
'round'

Line cap style: butt, round, or square.

lineJoin string <optional>
'round'

Line join style: bevel, round, or miter.

lineDash Array.<number> <optional>

Line dash pattern. Default is undefined (no dash). Please note that Internet Explorer 10 and lower do not support the setLineDash method on the CanvasRenderingContext2D and therefore this option will have no visual effect in these browsers.

lineDashOffset number <optional>
0

Line dash offset.

miterLimit number <optional>
10

Miter limit.

width number <optional>

Width.