feat(shipwrecks): period picker like air accidents, sharper icons

- Replace the four era chips with the start and end year pickers the
  air-accidents layer uses (the same RowRange control, ported as is);
  the era colours stay as a legend under the row.
- Rasterize the boat marker at 144 px so large markers stay sharp.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Itallo BrandãoandClaude Opus 5.5 committed 2026-11-05 04:49:36 -03:00
1 parent dcd0f2cccd
commit 112ffd4386
25 files changed
+439 -71

No files matched your search

-12
View File
@@ -19,15 +19,3 @@ export function eraOf(record) {
if (year <= 1945) return '1900-1945';
return 'after-1945';
}
/**
* Normalize a requested set of eras; unknown names are ignored and an empty
* or missing request keeps the current set.
* @param {unknown} value Array of era ids.
* @param {Set<string>} current
* @returns {Set<string>}
*/
export function normalizeEras(value, current) {
if (!Array.isArray(value)) return new Set(current);
return new Set(value.filter((era) => SHIPWRECK_ERAS.includes(era)));
}