The bounding box of a geometry, or null when it holds no valid position.
null
A GeoJSON geometry (any type, collections included).
The box, or null.
geometryBounds({ type: "LineString", coordinates: [[1, 2], [3, 6]] });// { north: 6, south: 2, east: 3, west: 1 } Copy
geometryBounds({ type: "LineString", coordinates: [[1, 2], [3, 6]] });// { north: 6, south: 2, east: 3, west: 1 }
The bounding box of a geometry, or
nullwhen it holds no valid position.