Skip to content

Scale the map markers by zoom: dots, small signs, large signs - #56

Merged
egorikftp merged 11 commits into
mainfrom
feat/clusters
Nov 15, 2026
Merged

egorikftp merged 11 commits into
mainfrom
feat/clusters

Conversation

@egorikftp

@egorikftp egorikftp commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

The ticket asked for a clustering experiment. The honest outcome after trying the options live: at 206 objects real clustering is not needed — what the map needed is the mobile app's marker-size progression. What shipped:

  • Dots (zoom < 8.5) — every marker wears a plain colored circle instead of the artwork (the app's Circle tier): ink cameras, amber medium-speed, red repairs, each matching the line colors it belongs to. The camera dot reads the theme ink on light and the sign ink with a soft halo on dark — a solid white face read as anonymous blobs on the dark basemap. Hovering (or keyboard-focusing) a dot shows a brief chip — the kind's artwork plus the object's name; CSS-only, the text lives in a data attribute and touch just taps through to the detail panel.
  • Small signs (8.5–11) — the full artwork at 14px.
  • Large signs (> 11) — the artwork at its full 18px.

No object ever disappears from the map, and the overlay repair/medium-speed lines show at every zoom. Filters govern both the markers and the lines directly; the live per-kind counts sit in the filter panel rows.

Tried and rejected along the way, all verified live before rejection:

  • supercluster bubbles (40px radius) — hid markers that fit fine on the sparse mid-zoom map; the dependency went away.
  • region badges with per-kind breakdowns — once every marker wore its dot face, the badges only repeated what the map already showed.

A ?marker= share link flies into the sign tiers so the linked marker is actually visible.

Also fixed on the way: a StrictMode double-mount race where a stale loadData completing after its map unmounted doubled every marker.

@egorikftp egorikftp changed the title Cluster the map markers into zoom bands: region badges, supercluster bubbles, plain signs Show region badges with per-kind breakdown at country zoom Nov 15, 2026
@egorikftp egorikftp changed the title Show region badges with per-kind breakdown at country zoom Drill down through badges: country, oblast, then signs Nov 15, 2026
@egorikftp egorikftp changed the title Drill down through badges: country, oblast, then signs Scale the map markers by zoom: dots, small signs, large signs Nov 15, 2026
@egorikftp
egorikftp merged commit 5c4d5d1 into main Nov 15, 2026
1 check passed
@egorikftp
egorikftp deleted the feat/clusters branch November 15, 2026 20:50
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.

Experiment clasterization

1 participant