A tap takes about 1.5 ms from 4,000 to 40,000 features; a grid over the
boxes halves it at 40,000 and changes nothing at 4,000, so there is no
index. scripts/bench-pick.ts reproduces the numbers.
Claude-Session: https://claude.ai/code/session_019MDtmsK7DLpfrBNHLWnWaM
pickAt walked the features in array order and ignored layer, so a coarse
Natural Earth country listed first took every tap inside a fine place
drawn over it (Solon: a tap inside Narva selected Russia). The pick index
is now topmost first: highest layer, then smallest area, then listed last.
Adds pickAllAt, picking tests on real borders (Narva, Valga/Valka,
Goerlitz/Zgorzelec, Baarle enclaves, Liechtenstein communes) with sourced
fixtures, and docs/design/picking.md.
Claude-Session: https://claude.ai/code/session_019MDtmsK7DLpfrBNHLWnWaM
`@bitbaum/geo-kit/map`: an orthographic globe on Canvas 2D (d3-geo) which,
zoomed in, is a flat map of the place in front of the reader, so the world
and a commune are one projection and one renderer. Extracted from Substrata's
globe (camera, motion, culling, picking, the fast projection, painting, input
and frame loop), made country-neutral (features keyed by any id, fills by id,
limits per map) and framework-free (`createMap` takes a canvas). Solon's
commune map moves onto it from MapLibre, Substrata's globe after it.
d3-geo and topojson-client are optional peer dependencies, needed by /map only.
Claude-Session: https://claude.ai/code/session_019MDtmuxKPxNit33QRcXSCC
Co-authored-by: Claude <noreply@anthropic.com>