on Click
Allows you to implement or observe the map click handler. The surface is onAttached before this can be triggered.
See also
for instructions to enable.
Parameters
mapbox Car Map Surface
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