Dual-mode tile URL resolver helper (src/lib/gis/tile-url.ts) #46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Implement the client-side tile URL resolution helper in
src/lib/gis/tile-url.tsso all frontend layers seamlessly route to the Anycast CDN edge in production or fallback to the local/tiles/[file]route in local development.Technical specifications
src/lib/gis/tile-url.ts: Resolver functiongetTileUrl(archiveName: string): string.src/lib/gis/__tests__/tile-url.test.ts: Unit test suite.NEXT_PUBLIC_TILES_BASE_URLis configured, return${NEXT_PUBLIC_TILES_BASE_URL}/${archiveName}.pmtiles.pmtiles:///tiles/${archiveName}.pmtiles.Acceptance criteria
Blocked by
src/app/tiles/[file]/route.ts).Authoritative Specifications & Reference Documentation
docs/ARCHITECTURE.mdIssue 33: [Frontend] Dual-mode tile URL resolver helper (to [Frontend] Dual-mode tile URL resolver helper (src/lib/gis/tile-url.ts)src/lib/gis/tile-url.ts)[Frontend] Dual-mode tile URL resolver helper (to Dual-mode tile URL resolver helper (src/lib/gis/tile-url.ts)src/lib/gis/tile-url.ts)