Testing @mourner’s polylabel with D3.
Orange dot = country centroid; white dot = polylabel of the projected polygon (or largest projected polygon in case of MultiPolygons).
See the variant: elliptic / scaled polylabel.
TODO :
retrieve the radius
solve clipping issues (antimeridian clipping + antarctica)
Built with blockbuilder.org, base map by @mbostock.