Returns breaks in kilometres, rounded to a 1/2/5 sequence so the bar reads cleanly at any extent.
Details
The whole bar is sized to at most share of the frame width — not share
per interval. Sizing per interval overruns the frame, at which point tmap
reports "not all scale bar breaks could be plotted" and then silently drops
every label but the last, which looks like a styling problem rather than a
sizing one.
share is a bound, not a target: the step is the largest 1/2/5 value that
fits, so the bar is always at or under it. Rounding to the nearest nice
value instead overruns by up to 1.39x, which is the failure the bound exists
to prevent.
