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.
https://d3js.org/d3.v4.min.js
https://d3js.org/d3-geo-projection.v1.min.js
https://d3js.org/topojson.v1.min.js