Clustering of MKAnnotations on an MKMapView

Originator:6sixbe
Number:rdar://21544076 Date Originated:25/06/2015
Status:Open Resolved:
Product:iOS Product Version:*
Classification:Feature Reproducible:
 
When many MKAnnotations are added to an MKMapView they can appear to be overlapping each other and the map can easily become unreadable.
There are tips and tricks to cluster/de-cluster you MKAnnotations based on current zoom level but they suffer from the following:
1. it's a lot of error-prone code to write, usually involving assigning your MKAnnotations (or the underlying data) to a quad-tree and performing quad-tree search on the fly base on zoom level.
2. even with a good quad-tree the visual treatment is usually very disappointing: the annotations appear clustered at one zoom level and suddenly jump when they de-cluster at a lower zoom level (and vice versa when clustering). Such jumps are the result of adding and removing MKAnnotations from the map: the link is lost between clusters and their content.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!