withComputedBbox
Returns a copy of this GeoJSON object with a computed bounding box.
For FeatureCollection and GeometryCollection, computes the bounding box from all contained coordinates. For Feature, uses the geometry's bounding box. For other types, returns the object unchanged.
Return
A copy of this object with the bbox property set to the computed bounding box, or null if there are no coordinates.