As per the Google Android API v2 documentation: "
onCameraChange(CameraPosition)
callback. This callback is guaranteed to be called at the end of every
animation but may not be called for intermediate frames."
As per Google Maps SDK for iOS: "mapView:didChangeCameraPosition:
is called repeatedly during a gesture or
animation, always after a call to mapView:willMove:
. It is passed the
intermediate camera position."
As such it seems the Android callback fires after the animation and the iOS callback fires intermediately, which is what I am experiencing.
I've update the Google Maps library to rather use: "mapView:idleAtCameraPosition:
is invoked once the camera position
on GMSMapView
becomes idle, and specifies the camera positon in question.
At this point, all animations and gestures have stopped."
Which is a much closer fit to the onCameraChange(CameraPosition)
callback, and provides a more consistent behaviour over devices.
Hopefully, this explains it!
On Friday, September 12, 2014 7:32:02 PM UTC+2, Shai Almog wrote: