webdggrid / unwrapAntimeridianRing
Function: unwrapAntimeridianRing()
unwrapAntimeridianRing(
ring):Position[]
Defined in: webdggrid.ts:156
Rewraps a polygon ring that crosses the antimeridian so that all longitudes are in a contiguous range (some may exceed 180°). This is the format expected by MapLibre GL / Mapbox GL globe projection for antimeridian cells. For renderers that require standard [-180, 180] coordinates, use the raw output from Webdggrid.sequenceNumToGrid directly.
Parameters
ring
Position[]
Returns
Position[]