mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:55:42 +00:00
Replace geometric centroid (mean of pixels) with a distance-transform-based approach that finds the point inside each province maximally distant from edges, weighted by proximity to the visual center. This fixes labels that bled into neighboring provinces or extended over water (Berkorszag, Chia, Pozia). Also adds --update-centroids mode to generate_map.py for re-running label positioning without losing hand-tuned styling fields. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>