CameraPositionState.position is not updated when using Lite Mode
See original GitHub issueSimilar issue as #15 except when in Lite Mode. My assumption is that this is because Lite Mode doesn’t support setOnCameraIdleListener
and the other listeners
2022-02-10 11:43:52.500 23983-23983/com.google.maps.android.compose W/Google Maps Android API: setOnCameraIdleListener is not supported in Lite Mode
2022-02-10 11:43:52.500 23983-23983/com.google.maps.android.compose W/Google Maps Android API: setOnCameraMoveCanceledListener is not supported in Lite Mode
2022-02-10 11:43:52.500 23983-23983/com.google.maps.android.compose W/Google Maps Android API: setOnCameraMoveStartedListener is not supported in Lite Mode
2022-02-10 11:43:52.501 23983-23983/com.google.maps.android.compose W/Google Maps Android API: setOnCameraMoveListener is not supported in Lite Mode
Steps to reproduce:
- Modify the sample application’s GoogleMapOptions() to enable Lite Mode
- Launch the sample application
- Turn the ‘Camera Animations On’ switch to off a. Note: it also doesn’t update the position when the switch is on
- Zoom in/out with the +/- buttons
- Notice that the DebugView camera position is not updated
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Initial Camera Position Google Maps Compose - Stack Overflow
I'm trying to use the new Google ...
Read more >Maps Compose Library | Maps SDK for Android
Create a Google Maps project in Android Studio with: A template type of Empty Compose Activity. This template adds the necessary dependencies required...
Read more >CameraPositionState - Google Maps API Libraries
A state object that can be hoisted to control and observe the map's camera state. A CameraPositionState may only be used by a...
Read more >9 Fixes to Google Maps Location Sharing Not Updating
To do that, please follow the steps. Open the Settings app. Go to Privacy > Location > Location Services, and make sure Location...
Read more >Using Google Maps in a Jetpack Compose app - Part 2!
We need to be able to drive the map's camera position from location , a StateFlow in the view model (the updating of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It might be worth creating a separate element for lite mode (e.g.
GoogleMapsLiteMode
) with a reduced property/function set so unsupported features (like camera events) are stripped away from it.Closing this issue due to lite mode’s limitation. Please open a feature request if there is a desire to have something like
GoogleMapsLiteMode
as mentioned in https://github.com/googlemaps/android-maps-compose/issues/25#issuecomment-1036715344