The ScaleBar displays a small line indicator representing the current map scale.
tooltip: 'Scale Bar' # text to use as tooltip
target: ~ # Id of Map element to query
layerset: ~ # layer collection
maxWidth: 200 # the max width of the scale bar, default 200
anchor: 'inline'/'left-top'/ # scale bar alignment, default is 'right-bottom'
'left-bottom'/'right-top'/ # use inline f.e. in sidebar
'right-bottom'
position: array('0px','0px') # scale bar position, default: x=20px, y=20px
units: array('km','ml') # scale bar units 'kilometer' and/or 'miles', default ['km']
None.
None.
None.