Skip to content

Remove the OpenFreeMap fallback from the basemap - #517

Merged
simplifaisoul merged 1 commit into
masterfrom
fix/basemap-no-openfreemap
Nov 25, 2026
Merged

simplifaisoul merged 1 commit into
masterfrom
fix/basemap-no-openfreemap

Conversation

@simplifaisoul

@simplifaisoul simplifaisoul commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Follow-up to #516. When no tile server was configured, /api/basemap/style redirected the map to OpenFreeMap's Dark Matter. This removes that fallback, so the basemap only ever comes from our own tile server, with CARTO's cached tiles standing in for individual tiles it can't deliver.

OpenStreetMap remains the data under the map (Protomaps' world map and CARTO's tiles are both built from it), and its attribution stays as required.

Changes

  • /api/basemap no longer redirects anywhere. Without BASEMAP_URL and BASEMAP_TILESET, every request to it answers 503 with a message naming the two settings, and is not cached.
  • .env.example marks the basemap settings as needed for a basemap and drops the OpenFreeMap note.
  • Comments in the route and in OsirisMap updated to match.

Deployment

BASEMAP_URL and BASEMAP_TILESET must be set on every app server before this is deployed, or the map has no basemap.

Testing

  • npx vitest run src/app/api/basemap src/lib/basemap: 32 tests pass, including the unconfigured route answering 503 without a redirect or upstream request.
  • npx tsc --noEmit: no errors. ESLint: no findings in changed files.
  • next build: completes with exit code 0.
  • Production build exercised in headless Chrome against a configured tile server: London, Los Angeles and New York at zooms 13.5 to 15.5. All style, font, icon and tile requests answered 200, with none to other map hosts.

🤖 Generated with SIMPLIFAI

Without a tile server configured, /api/basemap redirected the map to
OpenFreeMap's Dark Matter. The basemap now comes only from our own tile
server, with CARTO's cached tiles standing in per tile; with no tile server
set, every /api/basemap request answers 503 and names the two settings.
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
osiris Ready Ready Preview Nov 25, 2026 10:36pm UTC

@simplifaisoul
simplifaisoul merged commit d7a8bcb into master Nov 25, 2026
3 checks passed
@simplifaisoul simplifaisoul changed the title Remove the OpenFreeMap fallback from the basemap Remove the OpenFreeMap fallback and draw basemap labels in their styled fonts Nov 25, 2026
@simplifaisoul simplifaisoul changed the title Remove the OpenFreeMap fallback and draw basemap labels in their styled fonts Remove the OpenFreeMap fallback from the basemap Nov 25, 2026

This branch was successfully deployed

1 active deployment
Preview – osiris — d02b84a4 Deployed Nov 25, 2026 by vercel[bot]
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