On this page
Properties

Type Alias CenterZoomBearing

Holds center, zoom and bearing properties

type CenterZoomBearing = {
    bearing?: number;
    center?: LngLatLike;
    zoom?: number;
}
Index

Properties

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?: LngLatLike

The desired center.

zoom?: number

The desired mercator zoom level.

Was this helpful?
SDK JS
Reference
CenterZoomBearing