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.

Source of camera movement - Exposing GoogleMap.OnCameraMoveStartedListener "reason"

See original GitHub issue

Hi!

Is there an equivalent for OnCameraMoveStartedListener.REASON_GESTURE? If not, can you please support it? I would like to trigger a specific action when users moves the map. I’ve searched CameraPositionState.kt and found isMoving but this works the same if the camera was moved by code or by user.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
arriolaccommented, Mar 9, 2022

This can be supported as another property on CameraPositionState

0reactions
barbeaucommented, Jun 22, 2022

I’ve opened a PR for this feature at https://github.com/googlemaps/android-maps-compose/pull/154.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GoogleMap.OnCameraMoveStartedListener
Camera motion initiated in response to user gestures on the map. Public Method Summary. abstract void. onCameraMoveStarted(int reason).
Read more >
How can I handle map move end using Google Maps for ...
I would try a onCameraChangeListener. The listener is called every time a movement of the camera is finished. The listener ...
Read more >
GoogleMaps: Detect if camera move was started by user #50931
It contains a reason parameter which is REASON_GESTURE if the map was moved by a user gesture. If there's no other way, I...
Read more >
Ultimate Guide to Camera Movement - YouTube
Camera Movement Cheatsheet (Shot List) ▻▻ http://bit.ly/cm-cheatsheetThe Ultimate Guide to Camera Movement ▻▻ http://bit.ly/cm-filmThe ...
Read more >
Types of Camera Movements in Film Explained: Definitive Guide
Our ultimate guide to the different types of camera movements in film, part of our ongoing Shot List series.
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