Interface ViewOptions

Hierarchy

Properties

Initial extent of the map, array of degrees in [west, south, east, north] order.

Remarks

Overrides the center and zoom parameters. LngLatBoundsArray

Example

// whole world
bounds: [0, -90, 180, 90]
center?: LngLatArray

Initial position of the map, array of two degrees [longitude, latitude]. LngLatArray

maxBounds?: null | LngLatBoundsArray
maxZoom?: number

The maximum zoom level of the map (0-24).

minZoom?: number

The minimum zoom level of the map (0-24).

zoom?: number

The initial zoom level of the map (0-24).

Generated using TypeDoc