What is the delegate method for Google Ios maps to complete scrolling?

Apple cards have a delegate method

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

and it starts when I finish scrolling or panning the map, but I could not find such a method for Google maps. There is a method

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

but this method continues to shoot while the map is still scrolling, and I do not want this. I need to change the property only when the scroll is complete.

+5
source share
3 answers

The latest SDK version 1.4.0 - July 2013 added a new delegation method

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

which will be triggered at the end of any camera movement or scroll action

+11
source

There is a function request to add something like this:

https://code.google.com/p/gmaps-api-issues/issues/detail?id=4722

, , , . , .

+1

idleAtCameraPosition - , .

Google sdk iOS 1.7, , , .

, /, .

GSMapView PanGestureRecognizer β†’ State ENDED, .

https://github.com/clearbrian/GoogleMapiOS_TapEndedGesture

0

All Articles