From b88a466601827a6af31fbb3f9f83f91ccb48bf5e Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 19 Nov 2021 18:09:17 +0100 Subject: [PATCH] Fix strokeStyle documentation --- src/ol/layer/Graticule.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ol/layer/Graticule.js b/src/ol/layer/Graticule.js index de624ba133..a342f55af5 100644 --- a/src/ol/layer/Graticule.js +++ b/src/ol/layer/Graticule.js @@ -86,9 +86,13 @@ const INTERVALS = [ * appropriate for conformal projections like Spherical Mercator. If you * increase the value, more lines will be drawn and the drawing performance will * decrease. - * @property {Stroke} [strokeStyle='rgba(0,0,0,0.2)'] The - * stroke style to use for drawing the graticule. If not provided, a not fully - * opaque black will be used. + * @property {Stroke} [strokeStyle] The + * stroke style to use for drawing the graticule. If not provided, the following stroke will be used: + * ```js + * new Stroke({ + * color: 'rgba(0, 0, 0, 0.2)' // a not fully opaque black + * }); + * ``` * @property {number} [targetSize=100] The target size of the graticule cells, * in pixels. * @property {boolean} [showLabels=false] Render a label with the respective