scrollBy

fun scrollBy(xPixels: Float, yPixels: Float): CameraUpdate(source)

Returns a CameraUpdate that scrolls the map by the specified pixel amounts.

Positive xPixels moves the viewport right (map content moves left). Positive yPixels moves the viewport down (map content moves up). The current zoom level is preserved.

Return

A CameraUpdate for the pixel scroll

Parameters

xPixels

The horizontal scroll amount in pixels

yPixels

The vertical scroll amount in pixels