mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 23:50:08 +00:00
8510d4a729
scripts/build-atlas-mesh.mjs turns the admin-0 and admin-1 GeoJSON the server already ships into TopoJSON at three levels of detail per world and two per country's regions, smoothed, quantized and Brotli-packed under content-hashed names, plus a manifest with every country's anchor, box and region index. It runs at build time (npm run build, npm run dev when the sources changed, and the Docker server stage); the output is not committed. /api/addons/atlas/mesh serves the manifest and the files as they are (immutable, a year), decompressing as a stream for a client without br.