load annotations as user pans

i have a massive amount of annotations and i want to display them all on a map.

Now the problem is, that the map lags a lot and starts moving chaotically around when the user pans across.


I tried Annotationclustering and it works all fine until the user zooms in.

So i thought the problem might be, that the annotations all loading at the same time could be overwhelming the system. So my idea was to load an annotation and make it visible only when it would be part of the "mapView.visibleMapRect".

I found out, how to check if an annotation is visible. And if not, it is removed.


My problem now is that the map doesn't reload the annotations when the user pans across, resulting in most of the annotations missing.


Any recommendations?


Thanks already in advance!

Replies

Your mistake is the with the 'massive amount of annotations'. Come to grips with that UI abuse and the other issues will go away on their own.