VehiclePosition

data class VehiclePosition(val horizontalFraction: Double, val verticalFraction: Double)

Computed vehicle icon position on the map surface.

Both values are fractions of the full MapView surface dimensions:

  • 0.0 = left/top edge

  • 0.5 = center

  • 1.0 = right/bottom edge

Parameters

horizontalFraction

Horizontal position as fraction of surface width

verticalFraction

Vertical position as fraction of surface height

Constructors

Link copied to clipboard
constructor(horizontalFraction: Double, verticalFraction: Double)

Properties

Link copied to clipboard
Link copied to clipboard