From c76789e33d9c8648cf12844f0d169136a7e14d72 Mon Sep 17 00:00:00 2001 From: Kathir Gounder Date: Wed, 12 Apr 2023 02:36:15 -0700 Subject: [PATCH] Add space between value and unit in scale control (#12644) * Removed Non-Breaking Space in hardcoded nautical unit formatting * Including Spaces between Magnitude and Unit for all scale control units --- src/ui/control/scale_control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/control/scale_control.js b/src/ui/control/scale_control.js index fae79eb28dd..58a6c4c9ee2 100644 --- a/src/ui/control/scale_control.js +++ b/src/ui/control/scale_control.js @@ -110,7 +110,7 @@ class ScaleControl { } // $FlowFixMe — flow v0.142.0 doesn't support optional `locales` argument and `unit` style option - this._container.innerHTML = new Intl.NumberFormat(this._language, {style: 'unit', unitDisplay: 'narrow', unit}).format(distance); + this._container.innerHTML = new Intl.NumberFormat(this._language, {style: 'unit', unitDisplay: 'short', unit}).format(distance); }); }