onScroll

open fun onScroll(    @NonNull mapboxCarMapSurface: MapboxCarMapSurface,     @NonNull visibleCenter: ScreenCoordinate,     distanceX: Float,     distanceY: Float)

Allows you to implement or observe the map scroll gesture handler. The surface is [MapboxCarMapObserver.onAttached] before this can be triggered.

See also

for instructions to enable.

Parameters

mapboxCarMapSurface

loaded and ready car map surface

distanceX

the distance in pixels along the X axis

distanceY

the distance in pixels along the Y axis