Search code examples
iosswiftmapkitannotation

How to handle data for large number of pins on mapview?


I am developing an App that shows a map with annotations. The annotations are in thousands and growing. There are data associated with the annotation pins. I get the data from web service. Should I download all the data for all the pins upfront? That obviously is bad. But how should I do it in an efficient way that when the user zooms in and out the map, there is no lag.

Thanks in advance!


Solution

  • Show pins according particular region zoom, instead of showing all pins at one time.