I need to listen CameraPosition changes to draw a custom compass. The problem that: GoogleMap.OnCameraChangeListener onCameraChange
- this listener may not be notified of intermediate camera positions.
- it fires with random delays (can not understand why)
Is there are any way to listen to CameraPosition bearing changes? (In ios f.e. it's possible to achieve using Key-Value Observing), reflection...? Thanks.
Put FrameLayout above map and catch touches:
To move the camera instantly with the given CameraUpdate, you can call
GoogleMap.moveCamera(CameraUpdate)
.You can make the user experience more pleasing, especially for short moves, by animating the change. To do this instead of calling
GoogleMap.moveCamera()
callGoogleMap.animateCamera()
. The map will move smoothly to the new attributes. The most detailed form of this method,GoogleMap.animateCamera(cameraUpdate, duration, callback)
, offers three arguments: