new ol.style.Stroke(opt_options) experimental
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options.
|
||||||||||||||||||||||
Methods
-
getColor(){ol.Color|string} experimental
src/ol/style/strokestyle.js, line 72 -
Get the stroke color.
Returns:
Color.
-
getLineCap(){string|undefined} experimental
src/ol/style/strokestyle.js, line 82 -
Get the line cap type for the stroke.
Returns:
Line cap.
-
getLineDash(){Array.<number>} experimental
src/ol/style/strokestyle.js, line 92 -
Get the line dash style for the stroke.
Returns:
Line dash.
-
getLineJoin(){string|undefined} experimental
src/ol/style/strokestyle.js, line 102 -
Get the line join type for the stroke.
Returns:
Line join.
-
getMiterLimit(){number|undefined} experimental
src/ol/style/strokestyle.js, line 112 -
Get the miter limit for the stroke.
Returns:
Miter limit.
-
getWidth(){number|undefined} experimental
src/ol/style/strokestyle.js, line 122 -
Get the stroke width.
Returns:
Width.
-
setColor(color) experimental
src/ol/style/strokestyle.js, line 133 -
Set the color.
Name Type Description colorol.Color | string Color.
-
setLineCap(lineCap) experimental
src/ol/style/strokestyle.js, line 145 -
Set the line cap.
Name Type Description lineCapstring | undefined Line cap.
-
setLineDash(lineDash) experimental
src/ol/style/strokestyle.js, line 163 -
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.
-
setLineJoin(lineJoin) experimental
src/ol/style/strokestyle.js, line 175 -
Set the line join.
Name Type Description lineJoinstring | undefined Line join.
-
setMiterLimit(miterLimit) experimental
src/ol/style/strokestyle.js, line 187 -
Set the miter limit.
Name Type Description miterLimitnumber | undefined Miter limit.
-
setWidth(width) experimental
src/ol/style/strokestyle.js, line 199 -
Set the width.
Name Type Description widthnumber | undefined Width.
OpenLayers 3