From ff79897f065f515aebc915ab5d879c0cd3e8ef96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sat, 6 Aug 2022 22:57:42 +0200 Subject: [PATCH] Fix default value docs for ScaleLine class option --- src/ol/control/ScaleLine.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/control/ScaleLine.js b/src/ol/control/ScaleLine.js index 1542b55368..28c88d117b 100644 --- a/src/ol/control/ScaleLine.js +++ b/src/ol/control/ScaleLine.js @@ -39,7 +39,8 @@ const DEFAULT_DPI = 25.4 / 0.28; /** * @typedef {Object} Options - * @property {string} [className='ol-scale-line'] CSS Class name. + * @property {string} [className] CSS class name. The default is `ol-scale-bar` when configured with + * `bar: true`. Otherwise the default is `ol-scale-line`. * @property {number} [minWidth=64] Minimum width in pixels at the OGC default dpi. The width will be * adjusted to match the dpi used. * @property {number} [maxWidth] Maximum width in pixels at the OGC default dpi. The width will be