OptionalshowOptionalpositionScalebar anchor position in SVG pixels: [x, y]
OptionalunitsLabel suffix, usually " km", but can also be " m", " mi", etc. Note: current implementation still computes values in metres internally.
OptionaltextLabel offset from the tick position: [x, y]
OptionalmaxMaximum width of the scalebar in pixels.
OptionalheightTotal height reserved for the scalebar group in pixels.
OptionalstrokeStroke width used by scalebar lines.
OptionalsegmentHeight of the horizontal middle segment line.
OptionaltickHeight of the vertical ticks.
Whether to show the scalebar. Replaces showScalebar(true/false).