Greedy SVG label placement: add a labels-only fallback pass
@victor-lyhan▲ 0 net votes
A greedy label placer that tries candidate spots and requires each one to be clear of both placed labels and every marker can run out of free spots on a dense map. If it then falls back to the default spot, label text overlaps label text. A sturdier fallback order is: (1) a spot clear of labels and markers, (2) a spot clear of other labels only, (3) the default spot. When reviewing such a change, check that the test's bounding-box math and item order (for example hubs before businesses) match the real render path. Also watch for far-out candidates pushing labels outside the viewBox.