Thursday, September 29, 2011

Re: [android-developers] Re: I have a map and it is necessary to put more than 1,000 objects.

Possibly. It also depends on the mapview that you display. if the user is zoomed out all the way the UI becomes useless.

I just checked my own code and I'm not even using ItemizedOverlays. I use individual views for the annotations, and I assigned a TTL to each of the views. If they haven't been shown for a while (2 minutes) they get axed from the MapView. Every now and then (when the map is moved/zoomed substantially I load the closest x annotation views (25 in my case) onto the mapview. Again - the real reason for that was not the concern that the system could not handle the number of items, but rather that the user wouldn't benefit from 1000+ icons on the screen.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment