Search code examples
iosobjective-cgoogle-mapsgeolocationgmsmapview

Google map (GMSMapView) calls didTapMarker delegate's method after a delay


It take a second before didTapMarker is called. Same with didTapAtCoordinate method.

I have a project that contains only google map and two pins in it. I try to run it on iOS9 and iOS10, same results. When I add a button it works properly.

Looks like it's trouble with a map. How to fix that?


Solution

  • How big is the delay? I've seen several cases where a small delay was caused by the device waiting to check if it is a single tap (didTapSomething) or double tap to zoom.

    As stated by Nazir, Can we get some code?