Skip to content

Declutter point features (cities/peaks) at low zoom - #926

Merged
systemed merged 6 commits into
masterfrom
declutter
Aug 29, 2026
Merged

Declutter point features (cities/peaks) at low zoom#926
systemed merged 6 commits into
masterfrom
declutter

Conversation

@systemed

Copy link
Copy Markdown
Owner

This implements a prominence algorithm for point features such as cities/towns or mountain peaks.

The Lua profile sets a Score for each affected point feature. These are written to a separate, temporary store of scored features rather than the main datastore.

Then, before writing, tilemaker iterates through each zoom level and chooses the highest scoring features that both exceed a set threshold and aren't within n pixels of an already-placed feature. The threshold halves per zoom level.

The implementation is based on an original Ruby/PostGIS implementation used in cycle.travel's raster rendering, and ported to C++ with Claude.

@systemed
systemed merged commit c070f2a into master Aug 29, 2026
11 of 12 checks passed
@systemed
systemed deleted the declutter branch August 29, 2026 14:41
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