ViewportState
Last updated
Was this helpful?
Last updated
Was this helpful?
The current state of the viewport, including the derived bounds.
center:
The center of the viewport in latitude and longitude.
zoom:
number
The zoom level of the viewport.
bounds: [
number
,number
,number
,number
]
The bounding box of the viewport in [west, south, east, north] order.
This is derived, and depends on the center and zoom of the viewport, as well as its size.