Is there any way to disable fling gesture on google map (SupportMapFragment)? Or I need at least an event to detect when map scrolling ends after fling and to compute map camera location.
Thanks.
Is there any way to disable fling gesture on google map (SupportMapFragment)? Or I need at least an event to detect when map scrolling ends after fling and to compute map camera location.
Thanks.
You can set an
OnCameraIdleListener. From the documentation:Thake into account that
OnCameraIdleListeneris one of the events that replace the deprecatedOnCameraChangeListener(documentation).You can get the new camera position like this:
You can know whether the user initiated the camera update event if you use the
OnCameraMoveStartedListener. The methodonCameraMoveStarted(int reason)provides a reason that equalsREASON_GESTUREif the update has been initiated by the user. From the documentation