Skip to content

Both copy text to your clipboard — Build with AI copies a setup prompt to paste into Claude Code, Cursor, Codex or Copilot; Copy page as Markdown copies this page to paste into a chat. How it works

CameraUpdateTransformFunction()

CameraUpdateTransformFunction = (next: object) => object

Defined in: src/ui/camera.ts:239

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

Parameters

ParameterType
next{ bearing: number; center: LngLat; elevation: number; pitch: number; roll: number; zoom: number; }
next.bearingnumber
next.centerLngLat
next.elevationnumber
next.pitchnumber
next.rollnumber
next.zoomnumber

Returns

object

bearing?

optional bearing: number

center?

optional center: LngLat

elevation?

optional elevation: number

pitch?

optional pitch: number

roll?

optional roll: number

zoom?

optional zoom: number