Skip to content

fix(maps): switch Map Explorer to CartoDB raster tiles - #184

Merged
slaveofcode merged 3 commits into
developfrom
fix/map-carto-raster
Aug 8, 2026
Merged

fix(maps): switch Map Explorer to CartoDB raster tiles#184
slaveofcode merged 3 commits into
developfrom
fix/map-carto-raster

Conversation

@slaveofcode

Copy link
Copy Markdown
Owner

Summary

  • Replaces OpenFreeMap vector tiles with CARTO free raster tiles (no API key, Fastly CDN)
  • Drops transformRequest, fetchResolvedStyle, and all OFM diagnostic event listeners
  • resolveStyle() now returns a style object directly — map init is synchronous, no async fetch
  • Style switching compares by id instead of URL; setStyle() receives the object directly
  • GeolocateControl maxZoom lifted from 14 → 18 (OFM's vector tile limit no longer applies)
  • Attribution updated to "OpenStreetMap contributors, © CARTO"

Test plan

  • All 874 unit tests pass
  • npm run lint — 0 errors
  • npm run build — clean
  • Map renders on load
  • Find My Location button shows streets/buildings at the located position (the original bug)
  • Style switcher changes map tiles correctly

slaveofcode and others added 3 commits August 8, 2026 15:31
Promote to production: bypass CF edge cache for OFM proxy
Promote to production: let transformRequest own all OFM URL rewriting
Replaces OpenFreeMap vector tiles (which silently failed to render in
MapLibre after flyTo on the Singapore Cloudflare edge) with CARTO free
raster tiles. No API key required, Fastly CDN, four sub-domains for
parallelism. Drops transformRequest proxy, fetchResolvedStyle async
fetch, and all OFM diagnostic event listeners — map init is now
synchronous and reliable.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
goodwebtools 6737def Aug 08 2026, 10:24 AM

@slaveofcode
slaveofcode merged commit c0d4160 into develop Aug 8, 2026
2 checks passed
@slaveofcode
slaveofcode deleted the fix/map-carto-raster branch August 8, 2026 10:24
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