1

I am adding pins to a MKMapView using MKPinAnnotation view and was wondering if there is a way to stop pin-clumping (i.e. all the pins showing when zoomed out). Is there a way to do this using the API or do I have to manually filter the annotations to be added based on the current zoom amount?

enter image description here

fuzzygoat
  • 26,573
  • 48
  • 165
  • 294
  • You may find http://stackoverflow.com/questions/2200504/how-can-i-reduce-the-number-of-annotations-on-a-map useful – chatur Mar 22 '12 at 04:58

1 Answers1

3

MapKit does not provide a way to cluster the annotation views itself. You basically have two options. You can manually remove/hide the annotations yourself or use a third party framework like OCMapView. I have not used it myself so I can't comment on how good it is.

Ross Kimes
  • 1,234
  • 1
  • 12
  • 34
  • Thank you Ross, I will probably look at doing this myself as that way I can better control the amalgam of pin data at each zoom level. Thanks again for your quick reply, its much appreciated. – fuzzygoat Mar 21 '12 at 16:58