attachMapView

fun attachMapView(mapView: MapView, verticalVehiclePos: Double = 0.23): Error?

Attach a MapView to the navigation

Return

an Error or null if no error occurred

/!\ For now only one MapView can be attached to the navigation, so if a MapView is already attached it'll be replaced with the new one and the previous one will automatically be detached.

Parameters

mapView

the MapView to attach

verticalVehiclePos

The vertical position of the vehicle symbol (as a percentage of the height of the mapview to apply from screen bottom)