The ScaleBar displays a small line indicator representing the current map scale.
YAML-Definition:
tooltip: 'Scale Bar' # text to use as tooltip
target: ~ # Id of Map element to query
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
maxWidth: 200 # the max width of the scale bar, default 200
units: array('km') # scale bar units 'kilometer' and/or 'miles' (ml), default ['km']
None.
None.
None.