How to cope with the delay as a result of hundreds of map annotations on MKMapView?

I am in a situation where 500+ annotations will be added to the map. How did you deal with the resulting lag with so many annotations on the map?

One thing I considered: only loading part of annotations based on the current area of ​​the map. But what happens when they shrink or move? Reboot based on display region?

+3
source share
1 answer

MKMapViewhas a method dequeueReusableAnnotationViewWithIdentifier:( documentation ) that I think you should use. It seems to work similarly to the method UITableView dequeueReusableCellWithIdentifier:.

- . .

update: , : ADClusterMapView

+6

All Articles