ScaleBarMeasure

A measurement system to show in the scale bar.

Inheritors

Types

Link copied to clipboard
open class Default(    units: Set<LengthUnit>,     mantissas: Set<Int> = setOf(1, 2, 5),     lowerBound: Length = 100.centimeters,     upperBound: Length = 50000.kilometers) : ScaleBarMeasure

A scale bar measurement system that generates stops based on given units and m * 10^e.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
abstract val stops: List<Length>

List of stops, sorted ascending, at which the scalebar should show. For best results, each stop should be no more than 2.5x times as big as the one before.

Functions

Link copied to clipboard
@Composable
abstract fun getText(stop: Length): String

Get the formatted text to show for a given stop.