Skip to content

fix: prevent crash on min/max zoom changes and fix zoom on navigation#572

Draft
jokerttu wants to merge 2 commits intomainfrom
fix/android-zoom-level-crash-and-nav-override
Draft

fix: prevent crash on min/max zoom changes and fix zoom on navigation#572
jokerttu wants to merge 2 commits intomainfrom
fix/android-zoom-level-crash-and-nav-override

Conversation

@jokerttu
Copy link
Copy Markdown
Contributor

Android Fabric delivers minZoomLevel and maxZoomLevel prop updates in
arbitrary order, which could create a transient state where min > max,
crashing the app with IllegalArgumentException. Fix by resetting both
zoom preferences before atomically re-applying the pair.

Add zoomLevel parameter to setFollowingPerspective so zoom can be
controlled during active navigation. On Android this uses
FollowMyLocationOptions; on iOS it sets followingZoomLevel on the map
view (or GMSNavigationNoFollowingZoomLevel to reset).

Fixes #570
Fixes #550

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

@jokerttu jokerttu requested a review from illuminati1911 April 20, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant