setVehicleHorizontalPosition

fun setVehicleHorizontalPosition(horizontalVehiclePos: Double = 0.5): Boolean

Sets the horizontal position of the vehicle symbol on the attached MapView. The position is defined as a percentage of the MapView width, where 0.5 represents the center. Values less than 0.5 shift the vehicle to the left, values greater than 0.5 shift it to the right.

Return

true if the position was successfully set, false if no MapView is attached or if the parameter is outside the valid range 0.0, 1.0

Parameters

horizontalVehiclePos

The horizontal position as a percentage of the MapView width (default is 0.5, which centers the vehicle horizontally). Must be in range 0.0, 1.0