tilemaker
tilemaker copied to clipboard
Point on surface instead of centroid
For labeling countries, point on surface is a better approach to get a labeling point than centroids because centroids can be located outside the polygon, e.g. France being labeled in the Bay of Biscay.
Good thinking. It looks like Boost.Geometry does have a point_on_surface implementation as well.
https://github.com/mapbox/polylabel