Skip to content

Open the map on the user's location - #11

Merged
isaachorowitz merged 1 commit into
mainfrom
fix/initial-location
Aug 24, 2026
Merged

isaachorowitz merged 1 commit into
mainfrom
fix/initial-location

Conversation

@isaachorowitz

@isaachorowitz isaachorowitz commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

First visit no longer opens on 0,0 in the ocean. The map asks for browser location and, if that is denied, uses a curated city for the timezone (Tel Aviv for Asia/Jerusalem; New York if unknown). Shared links with real coordinates stay put; the old lat=0.00000&lng=0.00000 poison URLs do not.

Verified with npx tsc --noEmit, focused ESLint, npm test (78/78), npm run build, and a local browser run: timezone fallback landed on Tel Aviv, GPS upgraded to Westminster, and a New York share link was not overwritten.


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

Stop treating a missing URL as 0,0 in the ocean. Request browser
geolocation on first visit, fall back to a curated city for the
timezone, and leave real shared links alone.
@isaachorowitz
isaachorowitz merged commit 3a3fdb0 into main Aug 24, 2026
4 of 6 checks passed
@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 Building Building Preview Aug 24, 2026 12:42pm

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