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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data | unknown |
Returns
Section titled “Returns”Bounds | null
Remarks
Section titled “Remarks”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.