Skip to content

pick: answer on a mark that overhangs its tile - #44

Merged
beetlebugorg merged 2 commits into
mainfrom
fix/pick-tile-edge
Aug 3, 2026
Merged

pick: answer on a mark that overhangs its tile#44
beetlebugorg merged 2 commits into
mainfrom
fix/pick-tile-edge

Conversation

@beetlebugorg

Copy link
Copy Markdown
Owner

A symbol is drawn around its anchor and its mark overhangs the tile edge, but the feature lives in the tile that holds the anchor. The query replayed only the tile under the point, so a pick on the overhanging part of a buoy didn't report the buoy.

The pick now replays every neighbor whose edge stands within a mark's reach of the point (48 reference px, in tile units), the query point re-expressed in each neighbor's frame, on both the single-chart and the composed path.

A symbol is drawn around its anchor and its mark overhangs the tile edge,
but the feature lives in the tile that holds the anchor. The query replayed
only the tile under the point, so a pick on the overhanging part of a buoy
answered the water instead of the buoy — the mariner's click was on the
mark they could plainly see.

The pick now replays every neighbour whose edge stands within a mark's
reach of the point (48 reference px, in tile units), the query point
re-expressed in each neighbour's frame, on both the single-chart and the
composed path. A dedupe keeps the once-per-feature contract: a feature
near an edge is baked into both tiles' buffers and would answer twice.
Emit before recording, so a full table cannot eat a hit.
@beetlebugorg
beetlebugorg merged commit b58e5d2 into main Aug 3, 2026
5 checks passed
@beetlebugorg
beetlebugorg deleted the fix/pick-tile-edge branch August 3, 2026 13:15
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