* fix(map): a tap picks the place drawn on top, and pickAllAt returns the stack (0.7.0)
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
* feat(map): borders are stroked layer by layer, and picture tests for the border fixtures (0.8.0)
A coarse country's outline was stroked in one pass over every fill, so it
ran across the fine places drawn over it. Each layer's fills are now
followed by its own border lines. Adds Skia-rendered picture tests with
baselines, including a check that no coarse border is stroked across a
fine place.
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
Countries, regions and towns placed each frame without overlap, most
important first, within zoom bands; towns as dots; tappable. Wheel and
pinch zoom about the pointer; double click or tap zooms in on the spot.
Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92
Co-authored-by: Claude <noreply@anthropic.com>
`@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>