-1

I used google map sdk for my iOS Application. Here I want to perform GMSMarker hide/show functionality based on the GMSMapView zoom in/zoom out.

Could anyone guide me in correct solution please.

TheTiger
  • 12,822
  • 3
  • 53
  • 77
Balaji G
  • 663
  • 1
  • 8
  • 21
  • I don't know, marker has the hide/show functionality. So please share your comments to archive this. In iOS MapKit sdk has the hide/show option. – Balaji G Jun 12 '15 at 21:03

1 Answers1

2

You can add UIPinchGestureRecognizer on your map view.

mapView_.gestureRecognizers = @[ /*add your UIPinchGestureRecognizer instance here*/]; 

Then in its selector method you can hide/show the marker using:

 marker.map = nil; //To hide
 marker.map = mapView_; //To show
Shubham
  • 78
  • 6