A people-group pin is a representative point, not an address, and some pins ARE the same point: on the Doxa roster 2,107 groups sit on 2,048 coordinates, 108 of them on a point shared with another (gospel- plugin's measurement). Every map with people-group pins must say so, in one wording. - library/components/legends/ApproxPinNote.vue: "The dot marks where this people is found, not a town or a boundary." always; when the selected pin's point is shared, "It sits on the same point as <names> — <n> groups share this coordinate…". Never prints the raw coordinate. Wording: gospel-plugin's P5 proposal, in a new pins catalogue (11 locales). - library/utils/colocation.js: the co-location index, built from the roster THE MAP draws (rows or GeoJSON features), never a hardcoded count. - LegendDesktop and LegendMobile (research map, simple map, country posters, cities, UPG-100) show the note under the legend, and under the detail card with the shared names. - check:approx-pin-note (headless, gates:post): the index, the two sentences, no coordinate, Arabic. |
||
|---|---|---|
| .. | ||
| api | ||
| colors | ||
| components | ||
| composables | ||
| constants | ||
| data | ||
| i18n | ||
| layouts | ||
| lists | ||
| maps | ||
| packet | ||
| scripts | ||
| stores | ||
| styles | ||
| utils | ||
| index.js | ||
| ProfileLoader.vue | ||
| README.md | ||
library/ (@map) — the shared map template
The other half of the architecture (see ../plugin-designs/README.md):
every map in plugin-designs/<your-map>/ composes the reusable, parameterized pieces that live here.
Fix something here and every map benefits on the next build; break something here and every map
breaks — read components/WARNING.md before touching shared pieces.
| Folder | What lives there |
|---|---|
ProfileLoader.vue |
The root of every bundle: parses profile-config, loads the profile, provides the stores + config |
components/ |
Shared UI — map, legends, controls, popup (PeopleGroupDetail), tables, charts, hints (README) |
composables/ |
Shared logic — map engine (useMapInstance), provider switch, shadow-DOM styles, theming |
stores/ |
Per-instance Pinia stores (ui / map / data) — provided by ProfileLoader, injected by children |
api/ |
Data-source registry (sources.json) + fetch layer — the JAMstack runtime wiring |
colors/ |
Color sets maps opt into via profile-config.colorSet |
i18n/ |
The shared string catalogs (all maps speak the same languages) |
data/ |
Small shared datasets baked at build time (big served data lives in ../data/) |
constants/ |
Shared constants |
scripts/ |
Maintainer pipelines (posters, research) — not part of any bundle |
The rule of thumb (same as WARNING.md): custom code in your app-profile, reusable code here — and things only move from the first to the second once they've earned it.