Skip to content

Fix index map label rendering; render index map tab first - #237

Merged
thatbudakguy merged 2 commits into
mainfrom
polygon-labels
Oct 8, 2026
Merged

thatbudakguy merged 2 commits into
mainfrom
polygon-labels

Conversation

@thatbudakguy

Copy link
Copy Markdown
Member
  • Label polygons in index maps only once, at a sensible location
    This fixes a bug where some index maps would show the polygon
    labels repeated many times, because of the way that MapLibre picks
    locations to render text labels: it renders one for every disjoint
    polygon in a MultiPolygon, as well as every time a polygon crosses
    a tile boundary.

    This creates our own logic that picks the largest single part of
    a multipolygon to use as the host for a label for the group, so
    that index maps don't end up with crowded, duplicate labels.

  • Make index maps render before PMTiles in tab order

This fixes a bug where some index maps would show the polygon
labels repeated many times, because of the way that MapLibre picks
locations to render text labels: it renders one for every disjoint
polygon in a MultiPolygon, as well as every time a polygon crosses
a tile boundary.

This creates our own logic that picks the largest single part of
a multipolygon to use as the host for a label for the group, so
that index maps don't end up with crowded, duplicate labels.
@thatbudakguy thatbudakguy changed the title polygon labels Fix index map label rendering; render index map tab first Oct 8, 2026
@thatbudakguy
thatbudakguy merged commit e4e5ab3 into main Oct 8, 2026
2 checks passed
@thatbudakguy
thatbudakguy deleted the polygon-labels branch October 8, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant