on Scale
open override fun onScale(mapboxCarMapSurface: MapboxCarMapSurface, focusX: Float, focusY: Float, scaleFactor: Float)
Content copied to clipboard
See also
Parameters
focusX
x coordinate of the focal point in pixels. A negative value indicates that the focal point is unavailable.
focusY
y coordinate of the focal point in pixels. A negative value indicates that the focal point is unavailable.
mapboxCarMapSurface
loaded and ready car map surface
scaleFactor
the scaling factor from the previous state to the current state during the scale event. This value is defined as (current state) / (previous state)