Skip to content

CameraUpdateTransformFunction()

CameraUpdateTransformFunction: (next: object) => object

A callback hook that allows manipulating the camera and being notified about camera updates before they happen

Parameters

Parameter Type
next object
next.bearing number
next.center LngLat
next.elevation number
next.pitch number
next.zoom number

Returns

object

bearing?

optional bearing: number

center?

optional center: LngLat

elevation?

optional elevation: number

pitch?

optional pitch: number

zoom?

optional zoom: number

Defined in

src/ui/camera.ts:229