onClick

open override fun onClick(mapboxCarMapSurface: MapboxCarMapSurface, x: Float, y: Float)

Dispatches the click to the MapboxMap, so that map interactions registered with MapboxMap.addInteraction receive it, e.g. a com.mapbox.maps.ClickInteraction.

See also

MapboxCarMapGestureHandler.onClick

for instructions to enable.

Parameters

mapboxCarMapSurface

loaded and ready car map surface

x

the horizontal screen coordinate of the click in pixels

y

the vertical screen coordinate of the click in pixels