# Harvest Map: Valley Harvest

> Zoom across a valley of crop fields where markers spring apart, the legend counts what is in view and search ranks where each crop grows.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Education](https://www.sandbase.ai/skills/education)
- Version: 0.1.0
- Runs online: yes
- Page: https://www.sandbase.ai/skills/education/harvest-map

## What you get

Bring a region, its crops with colours and harvest months, place names and an optional palette. The Skill returns a downloadable Skill, an interactive demo and an example video.

## Install

Download the Skill package from https://www.sandbase.ai/skills/education/harvest-map (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/harvest-map build an interactive crop field map of <your region> with <your crops, colours and harvest months>, zoom-tiered crop markers, live in-view legend counts, field cards and ranked search, in English and Chinese
```

## How it works

1. **Describe and edit the valley** Start from the bundled valley of a few thousand invented crop fields, or describe your own in the prompt slots. The outline, river, grid, crops, districts, towns, palette and cover sequence live in src/valley.json; the field partition, counts, marker tiers, springs and search live in src/fields.mjs, shared by the page and its tests. A second example, delta orchards, runs on the same code.
2. **Build the offline file** With Node 22.4 or newer, run npm ci and npm run build:single to produce dist-single/index.html, one offline file that needs no keys, model calls, map tiles, external assets or storage. Invalid valley data fails with a stable valley_* code, and the page reports a canvas startup failure instead of a blank map.
3. **Verify and explore** npm run shoot runs the logic and browser checks. Then explore it: drag to pan, wheel or pinch to zoom, hover a crop in the legend to fade the others and click a field for its card. Far out, district markers spring apart so none overlap; closer, cluster markers pop out; closest, only the fields remain, and the legend counts what is in view.

## FAQ

### Does Harvest Map need a model key?

No. Harvest Map draws its valley from a local JSON file in an offline canvas, so it needs no API key and calls no model. Harvest Map needs no keys, model calls, map tiles, external assets or storage. A missing Chrome stops only the screenshot checks, and a missing Node 22.4 or npm dependencies stops the build. Sound starts muted.

### Is the Harvest Map data real?

No. The Harvest Map sample valley, its fields, crops and towns are invented. references/method.md explains how to bring your own field polygons and what to check about their licence before you publish a map built from them. Keep the crop names, field areas and towns consistent with your own source data.

### Why do Harvest Map markers move when I zoom?

In Harvest Map markers that would overlap push each other apart on springs and then settle. As you zoom in, the space grows and they return to their fields. Zoom tiers decide what you see: district markers far out, cluster markers closer, and individual fields closest.

### Is Harvest Map accessible?

Harvest Map is designed toward WCAG 2.2 AA: a focusable map with keyboard pan, zoom and field focus, visible focus, a legend of labelled buttons, a card dialog and a live text summary. Full conformance still needs testing with assistive technologies and expert review.

### Can Harvest Map be embedded?

Yes. A 345 by 345 Harvest Map embed keeps only the map and a one-row strip, and search and the legend open as drawers. Keyboard controls work there too: arrow keys pan, plus and minus zoom, 0 resets, square brackets step through fields in view and Enter opens a card.

## Examples

- Harvest Map interactive crop field map (scene)
- Valley Harvest (video)
