Skip to content

geojsonBounds

geojsonBounds(data): Bounds | null

Defined in: packages/core/src/interactions/geometry-bounds.ts:124

The bounding box of any GeoJSON object — a FeatureCollection, a Feature, or a bare geometry — or null when it holds no coordinates.

ParameterType
dataunknown

Bounds | null

The whole-source sibling of geometryBounds, sharing its walk: the fitTo initial camera (U14) frames a source’s entire data the way zoomToFeature frames one clicked feature. Loosely typed for the same reason — inline data: is validated loosely under v1.