diff --git a/lib/mapview/_mapview.mjs b/lib/mapview/_mapview.mjs index 79c90de663..ebee35dee0 100644 --- a/lib/mapview/_mapview.mjs +++ b/lib/mapview/_mapview.mjs @@ -179,9 +179,9 @@ export default (mapview) => { })) } - // Scalebar - mapview.scalebar && mapview.Map.addControl(new ol.control.ScaleLine({ - units: mapview.scalebar + // ScaleBar + mapview.locale.ScaleLine && mapview.Map.addControl(new ol.control.ScaleLine({ + units: mapview.locale.ScaleLine === 'imperial' ? 'imperial' : 'metric', })) // Attribution diff --git a/public/views/_default.js b/public/views/_default.js index 735b1aabf3..33c712600b 100644 --- a/public/views/_default.js +++ b/public/views/_default.js @@ -230,7 +230,6 @@ window.onload = async () => { locale: locale, hooks: true, scrollWheelZoom: true, - scalebar: 'metric', //'imperial' attribution: { target: document.querySelector('#Attribution > .attribution-links'), links: {