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

CenterZoomBearing

CenterZoomBearing = object

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

Holds center, zoom and bearing properties

Properties

bearing?

optional bearing: number

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

The desired bearing in degrees. The bearing is the compass direction that is "up". For example, bearing: 90 orients the map so that east is up.


center?

optional center: LngLatLike

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

The desired center.


zoom?

optional zoom: number

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

The desired mercator zoom level.