Skip to content

feat: add MapController.animateCamera()#585

Open
kota113 wants to merge 6 commits intogooglemaps:mainfrom
kota113:feat/support-animate-camera
Open

feat: add MapController.animateCamera()#585
kota113 wants to merge 6 commits intogooglemaps:mainfrom
kota113:feat/support-animate-camera

Conversation

@kota113
Copy link
Copy Markdown

@kota113 kota113 commented May 6, 2026

Adds an animateCamera API for map views and Android Auto, backed by native implementations on both Android and iOS.

The new API accepts a CameraPosition and an optional animation duration. TypeScript wrappers default zoom to 15 and duration to 500 ms, while duration=null lets the native SDK default duration apply.

Native modules now expose animateCamera through both NavViewModule and NavAutoModule; Android uses GoogleMap.animateCamera, and iOS animates to a GMSCameraPosition with CATransaction when a duration is supplied.

This also adds example controls, plus an integration/e2e test path that animates between Hong Kong and Tokyo and verifies the final camera target.

Issues

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.

@kota113 kota113 force-pushed the feat/support-animate-camera branch from 96923ce to 947b3d0 Compare May 6, 2026 13:22
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.

2 participants