11 Commits
Author SHA1 Message Date
Cato 7eccef8dfc feat(map): borders stroked layer by layer; picture tests (0.8.0) (#22)
* 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
2026-11-10 12:01:34 +01:00
Cato 9863117d66 fix(map): a tap picks the place drawn on top, and pickAllAt returns the stack (0.7.0) (#21)
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
2026-11-10 11:54:16 +01:00
Cato 1ff0c166ce feat(map): createFocus, the rule for which place a map is about, and hatch for contested land (0.6.0) (#20)
Claude-Session: https://claude.ai/code/session_019MDtmsegw9dJ7eykLcT7Fe
2026-11-10 11:17:06 +01:00
CatoandClaude ec13406322 feat(map): calm labels (density, padding, globe-aware, steady, fades, callouts) and paint layers (0.5.0) (#19)
Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-09 12:33:02 +01:00
CatoandClaude dc5fded495 feat(map): labels with collision, zoom where you point, place washes (0.4.0) (#18)
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>
2026-11-09 11:44:01 +01:00
CatoandClaude 12463a6d01 feat(map): one renderer for the geography geo-kit delivers (0.2.0) (#14)
`@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>
2026-10-30 22:01:34 +01:00
Cato a337aec928 feat: bound manifest loading and select geography by viewport 2026-09-30 09:39:08 -07:00
Cato 599e5685da feat: describe sourced geographic viewpoints and derived resources 2026-09-29 19:24:17 -07:00
Cato 050ad70ff2 feat: share WGS84 coordinate validation 2026-09-29 19:14:58 -07:00
Cato de66e691d2 fix: remove duplicate validators and tighten compiler checks 2026-09-29 18:57:36 -07:00
Cato 46487bc387 feat: add verified geography contracts and release workflows 2026-09-29 18:45:45 -07:00