Companion

object Companion

Static methods and variables.

Functions

Link copied to clipboard

Utility function to get DistanceUnits instance from given value.

Link copied to clipboard

Returns an array containing the constants of this type, in the order they're declared. This method may be used to iterate over the constants.

Properties

Link copied to clipboard

Imperial units using feet for short distances and miles for longer distances. The scale bar will display distances in feet for small distances and automatically switch to miles for longer distances.

Link copied to clipboard

Metric units using meters and kilometers. The scale bar will automatically choose between meters and kilometers based on the distance being displayed for optimal readability.

Link copied to clipboard

Nautical units using fathoms for short distances and nautical miles for longer distances. The scale bar will display distances in fathoms for small distances and automatically switch to nautical miles for longer distances. Commonly used for marine and aviation navigation.