feat(animations): Add map steady check for better animations#20
Merged
Conversation
Introduces a mechanism to wait for the map to be fully loaded and idle (isMapSteady) before initiating camera animations. This prevents animations from starting on a partially rendered or moving map, resulting in a smoother and more professional user experience. - Adds awaitMapSteady() to Map3dViewModel to suspend execution until the map is stable, with an optional timeout. - Creates a new WaitUntilTheMapIsSteadyStep for use in declarative animation sequences. - Refactors ThreeDMap, ScenarioScreen, and CameraControlDemoScreen to pass the ViewModel directly, simplifying state management and removing the need for onMap3dViewReady and onReleaseMap callbacks. - Integrates the steady check into existing animation scenarios to ensure they begin from a stable map state.
kikoso
approved these changes
Oct 28, 2025
kikoso
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! This can be merged.
googlemaps-bot
pushed a commit
that referenced
this pull request
Oct 28, 2025
# [1.3.0](v1.2.0...v1.3.0) (2025-10-28) ### Features * **animations:** Add map steady check for better animations ([#20](#20)) ([fbefa67](fbefa67))
|
🎉 This PR is included in version 1.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Demonstrates using maps3d.GoogleMap3D#setOnMapSteadyListener
Introduces a mechanism to wait for the map to be fully loaded and idle (isMapSteady) before initiating camera animations. This prevents animations from starting on a partially rendered or moving map, resulting in a better visual experience.