mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 16:33:16 +00:00
d8a93af2f5
A GL map fetches its style and its tiles, so it can only draw from a host the server's connect-src names. The raster presets and OpenFreeMap were written out in the middleware while the client kept its own idea of them, and nothing held the two together. The hosts, their reasons and the default OpenFreeMap style now live in shared/src/maps/map-defaults.ts. The middleware builds those sources from the list, and the client takes the default style from it, so the renderer choice the next steps add reads the same hosts the policy allows. The policy an install sends stays byte for byte the same: a test pins the whole connect-src in its order.