GMSMapView didLongPressAtCoordinate: return invalid coordinate first time

669 Views Asked by At
- (void)mapView:(GMSMapView *)mapView didLongPressAtCoordinate:(CLLocationCoordinate2D)coordinate

This delegate returns me wrong coordinates as given below and is happening only first time or i mean once you move/zoom the maps even a little bit, after that it start working fine.

This is the location i'm trying to fetch: map's center is Latitude: 37.31486 , Longitude: -122.03122 While the delegate method return me these values: Latitude: 0.00030 , Longitude: 0.00197

Any one faced this problem or know any thing about it, your help will be much appreciated.

---Edited--- I have tested and this issue coming up when you present your view controller. Otherwise if you simply push your view controller, it works just fine.

0

There are 0 best solutions below