Repository navigation
Remove the OpenFreeMap fallback from the basemap - #517
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #516. When no tile server was configured,
/api/basemap/styleredirected 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/basemapno longer redirects anywhere. WithoutBASEMAP_URLandBASEMAP_TILESET, every request to it answers503with a message naming the two settings, and is not cached..env.examplemarks the basemap settings as needed for a basemap and drops the OpenFreeMap note.OsirisMapupdated to match.Deployment
BASEMAP_URLandBASEMAP_TILESETmust 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 answering503without a redirect or upstream request.npx tsc --noEmit: no errors. ESLint: no findings in changed files.next build: completes with exit code 0.🤖 Generated with SIMPLIFAI