Skip to content

GoogleMaps: Detect if camera move was started by user #50931

@carlowenig

Description

@carlowenig

Hi there,

I'd like to detect if a camera move was started by the user by dragging the map.
Is there any implementation of this or any trick I could use to detect it?

I tied wrapping the GoogleMap widget inside a GestureDetector, but this does not seem to work, because the GestureDetector consumes the events, so they will not be propageted to the map widget.

As I have seen, there exists such a feature in the Android Maps SDK when using the onCameraMoveStarted callback. 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 would propose to add this feature.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions