question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CameraPositionState.position is not updated when using Lite Mode

See original GitHub issue

Similar 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:

  1. Modify the sample application’s GoogleMapOptions() to enable Lite Mode
  2. Launch the sample application
  3. Turn the ‘Camera Animations On’ switch to off a. Note: it also doesn’t update the position when the switch is on
  4. Zoom in/out with the +/- buttons
  5. Notice that the DebugView camera position is not updated

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
arriolaccommented, Feb 11, 2022

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.

0reactions
arriolaccommented, Mar 1, 2022

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found