Function: unwrapBbox()
unwrapBbox(
bbox):Bounds
Defined in: antimeridian.ts:77
Move the east edge of a bbox across the antimeridian, written with
minX > maxX as GeoJSON and STAC write it, one world east: then
minX < maxX, and maxX runs past 180°. Any other bbox keeps its edges.
Parameters
bbox
readonly [number, number, number, number]
Returns
Example
Fiji, the example in RFC 7946 section 5.2:
unwrapBbox([177, -20, -178, -16]); // [177, -20, 182, -16]
unwrapBbox([10, -10, 20, 10]); // [10, -10, 20, 10]