h3 icon indicating copy to clipboard operation
h3 copied to clipboard

Document `polygonToCells` limitation of 180 degree width

Open nrabinowitz opened this issue 3 years ago • 0 comments

The polyfill/polygonToCells function currently assumes that any polygon with an arc that's > 180 degrees of longitude crosses the antimeridian, leading to problems when users try to fill a world-size bounding box (e.g. a web map viewport). We should document this restriction and possible workarounds (inserting dummy vertices, splitting the polygon).

nrabinowitz avatar Jan 14 '22 00:01 nrabinowitz