Skip to content

CenterZoomBearing

CenterZoomBearing: object

Holds center, zoom and bearing properties

Type declaration

bearing?

optional bearing: number

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

The desired center.

zoom?

optional zoom: number

The desired zoom level.

Defined in

src/ui/camera.ts:74