What is the best way to load a lot of Overlays to a MapView in Android?
I want to load a lot of Overlays into one MapView.
Say i want to load about 10.000 or more Overlays to the Globe.
What is the best way to do that? I understand that with a MapView loading 10k of drawables at maximum zoom out will propably not work. (Both stability and user-experience).
So is there any workaround to do that. All suggestions are welcome.
Maybe creating stacks of Overlays, don't allow max zoom out, Overlays to come with the map as a picture and not be rendered in Android etc etc. Don't know if开发者_高级运维 all of that are possible.
I could use some guidance here.
This Thread might prove useful. The first responder recommends doing it as an async task, which could load from a SQL db. I'm not sure what kind of performance implications 10 000 overlays would have, but you could tweak the async task to space out loads in the background.
Hope that helps.
I figured out a self Clustering Solution. Here you can see it. Groups the geopoints if the projection of them in the mapView is too close. Also renders only the visible poins
精彩评论