Status: done (2026-11-01)
Priority: 1
Size: S
Arch: claims
Phase: implement
Design ref: Claims, ownership and territory (Overlay: Decided). Kim, 2026-10-29: a simple first version is acceptable. Review: docs/review-claims.md.
Goal: A toggle button, “Land”, next to Grid and Regions, that tints each owned tile by its owner and shows the claims on the land. Depends on VB-042.
Acceptance criteria:
A toolbar button “Land” turns the overlay on and off; off by default.
Village land takes a light tint in the village’s colour and household land a stronger tint in the same colour, outlined in the household’s own shade; unowned tiles stay untinted. Unrealised claims show as a dashed edge in the claimant’s colour; tiles claimed by two or more show hatched; cairns (VB-157) show as small stone piles on their tiles. Tints stay readable over the terrain at play zoom.
The overlay reflects ownership and claims changes (st.landDirty) on its next redraw and clears the set; a full redraw on change is fine.
The tile panel lists the claims on a tile: who, why, unrealised or realised, and strength.
tools/shot.js: a reusable screenshot of any scenario, seed and map after some years, with the Land overlay on (Playwright on the built page).
Smoke test toggles it on and off with no console errors.
Notes / questions:
Out of scope: filters by entity level (VB-044), chunk caching (VB-045).
2026-10-30: VB-003’s questions are answered; VB-003 is done.
2026-11-01 (claims review): renamed “Land”; claims, contested tiles and cairns added from VB-044, as the outland makes them the overlay’s main content; the tile panel’s claims moved here from VB-042.
2026-11-01 (done): the Land layer sits above the fences and below the grid; one Graphics, redrawn whole at most twice a second while st.landDirty holds tiles (and cleared without drawing while the overlay is off). A village’s colour is a golden-angle hue by id; a household’s outline the same hue at its own lightness. tools/shot.js takes --scenario, --seed, --size, --years, --land, --close N and --at X,Y,Z. Screenshot: docs/img/claims-land-start.jpg (populous tiny, seed 7, at the start, before the outland).