Skip to content

Add MapLibre map with user location#2

Merged
dfalling merged 3 commits into
mainfrom
add-maplibre-map
May 24, 2026
Merged

Add MapLibre map with user location#2
dfalling merged 3 commits into
mainfrom
add-maplibre-map

Conversation

@dfalling
Copy link
Copy Markdown
Owner

Summary

  • Replaces the @react-native/new-app-screen placeholder with a MapLibre-powered MapScreen
  • Uses OpenFreeMap's hosted Liberty vector style (free, no API key, OSM-data-compliant)
  • Requests foreground-only location (ACCESS_FINE_LOCATION + ACCESS_COARSE_LOCATION; no background permission)
  • Flies to the user's first GPS fix at zoom 14 with a UserLocation puck + accuracy circle; one-shot guard so we don't fight the user on subsequent pans

Test plan

  • Fresh install on emulator: prompted for location → granted → map zooms to the emulator's location
  • Deny permission: map stays at world view, no crash
  • Pan/zoom after auto-center: camera doesn't snap back
  • Logout still works (overlay bar unchanged)

🤖 Generated with Claude Code

Replace the React Native template view with a MapLibre-powered map
using OpenFreeMap's hosted vector tiles. Requests foreground-only
location permissions on mount and flies to the user's first fix at
zoom 14, with a UserLocation puck + accuracy circle.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dfalling dfalling enabled auto-merge (squash) May 24, 2026 21:51
dfalling and others added 2 commits May 24, 2026 22:56
The package ships ESM that jest can't parse with the default transform
config, causing App.test.tsx to fail. Mock it instead of widening
transformIgnorePatterns so tests stay fast and isolated from native code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Catches the same TypeScript and lint failures CI surfaces, before the
push. Hook lives in `.githooks/` and is wired up via a postinstall
script that sets `core.hooksPath` (skipped silently outside a git repo).
No new dependency.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dfalling dfalling merged commit c2bf3c7 into main May 24, 2026
2 checks passed
@dfalling dfalling deleted the add-maplibre-map branch May 24, 2026 22:01
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