Search code examples
iosios5google-maps-sdk-ios

What is the delegate method for Ios Google maps for did finish scrolling?


In Apple maps there is a delegate method

-(void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated

and is fired when I end scrolling or panning the map but I could not find such method for google maps. There is a method

- (void)mapView:(GMSMapView *)mapView didChangeCameraPosition:(GMSCameraPosition *)position

but this method keeps on firing while the map is still being scrolled and I don't want that. I have to change a property only when scrolling is finished.


Solution

  • The latest SDK release Version 1.4.0 - July 2013 has added a new delegate method

    - (void)mapView:(GMSMapView *)mapView idleAtCameraPosition:(GMSCameraPosition *)position 
    

    that will be triggered at the end of any camera movement or scrolling action