Skip to content

feat: add MapView reload - #91

Merged
lodev09 merged 5 commits into
mainfrom
feat/map-reload
Sep 10, 2026
Merged

lodev09 merged 5 commits into
mainfrom
feat/map-reload

Conversation

@lodev09

@lodev09 lodev09 commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add MapView.reload() on iOS, Android, and web to recover maps with missing tiles. Live maps retain their coordinate and zoom, reset heading and pitch, and emit onReady again. Static maps render again and invalidate cached iOS snapshots.

Capture Google iOS static snapshots only after mapViewSnapshotReady. Add reload controls and ready-event logging to the examples.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Test Plan

  • Android live reload and example ready-event logging confirmed by the author.
  • Typecheck, targeted ESLint, Kotlin lint, formatting, and diff checks passed.
  • iOS/web runtime behavior and static offline recovery still need verification. No builds run.

Screenshots / Videos

None.

Checklist

  • I tested on iOS
  • I tested on Android
  • I tested on Web
  • I updated the documentation (if needed)

mapViewDidFinishTileRendering also fires for tiles that failed permanently,
so a blank render could be cached under staticKey with no way to recover.
Swap and cache only on mapViewSnapshotReady.
Static maps drop the cached snapshot and re-render the base map. Live maps
have no tile reload in any SDK, so the native map is recreated at the
current camera with children re-added. Web remounts the map.
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
lugg-maps Ready Ready Preview Sep 10, 2026 6:03pm UTC

Request Review

@lodev09
lodev09 merged commit 888de17 into main Sep 10, 2026
5 checks passed
@lodev09
lodev09 deleted the feat/map-reload branch September 10, 2026 18:04
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