Road Label Surface Layer
class RoadLabelSurfaceLayer(carContext: CarContext, mapboxNavigation: MapboxNavigation) : CarSurfaceLayer
Content copied to clipboard
This will show the current road name at the bottom center of the screen.
In your Screen, create an instance of this class and enable by registering it to the MapboxCarMap.registerObserver. Disable by removing the listener with MapboxCarMap.unregisterObserver.
Constructors
RoadLabelSurfaceLayer
Link copied to clipboard
fun RoadLabelSurfaceLayer(carContext: CarContext, mapboxNavigation: MapboxNavigation)
Content copied to clipboard
Functions
children
Link copied to clipboard
onAttached
Link copied to clipboard
onDetached
Link copied to clipboard
onVisibleAreaChanged
Link copied to clipboard
@CallSuper()
Content copied to clipboard
surfaceDimensions
Link copied to clipboard
Properties
carContext
Link copied to clipboard
edgeInsets
Link copied to clipboard
mapboxNavigation
Link copied to clipboard
visibleArea
Link copied to clipboard