Skip to content

Show the impact map when the CARTO basemap is blocked - #10

Merged
isaachorowitz merged 1 commit into
mainfrom
fix/map-basemap-openfreemap
Aug 24, 2026
Merged

isaachorowitz merged 1 commit into
mainfrom
fix/map-basemap-openfreemap

Conversation

@isaachorowitz

@isaachorowitz isaachorowitz commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

The live map showed a yellow AJAXError: Failed to fetch (0) banner over a blank canvas because the CARTO Dark Matter style URL never loaded in the browser. The map now uses OpenFreeMap dark tiles, and if that style also fails it falls back to a local dark canvas so impact rings still draw.

This does not change the impact physics, NASA/JPL data, or casualty copy.

Verified with npx tsc --noEmit, npx eslint ., npm test (66/66), npm run build, and a local browser run: OpenFreeMap tiles loaded, NYC streets rendered, a Chelyabinsk scenario drew rings, and the AJAXError overlay did not appear.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Load OpenFreeMap dark tiles instead of CARTO style.json, fall back to a
local dark canvas if that style also fails, and ignore aborted tile
fetches so they no longer cover the map.
@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
asteroid-map Ready Ready Preview Aug 24, 2026 11:48am

@isaachorowitz
isaachorowitz merged commit f7f52b8 into main Aug 24, 2026
6 of 7 checks passed
@isaachorowitz
isaachorowitz deleted the fix/map-basemap-openfreemap branch August 24, 2026 11:50
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