Skip to content

Promote to production: fix blank map tiles via OFM proxy - #173

Merged
slaveofcode merged 2 commits into
mainfrom
develop
Aug 8, 2026
Merged

Promote to production: fix blank map tiles via OFM proxy#173
slaveofcode merged 2 commits into
mainfrom
develop

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Deploys PR #172 — routes all OpenFreeMap tile/style/glyph requests through our Cloudflare Worker at /ofm/* to fix blank maps for Southeast Asian users caused by the broken Singapore CDN edge.

🤖 Generated with Claude Code

Kresna and others added 2 commits August 8, 2026 13:46
…tiles

Cloudflare's Singapore CDN edge serves corrupt responses to Jakarta-region
users: style JSON returns a TypeScript schema and PBF tile requests never
complete. Routing every OFM request (style, TileJSON, glyphs, sprites, tiles)
through our own Cloudflare Worker at /ofm/* fetches from OFM's origin
server-side, bypassing the broken edge node entirely.

- worker/index.js: add /ofm/* proxy with CF edge caching (24h for
  style/TileJSON, immutable for versioned .pbf tiles)
- map-styles.lib.ts: resolveStyle() returns /ofm/styles/<id> instead of
  the absolute OFM URL
- MapExplorer.tsx: fetchResolvedStyle() rewrites all OFM URLs through the
  proxy (glyphs, sprites, raster tile arrays, vector TileJSON + tile URLs)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix(maps): proxy OFM tiles through /ofm/ to fix blank map for SE Asia users
@slaveofcode
slaveofcode merged commit 0ba01bb into main Aug 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant