Ok well I am pre-calculating the 'mercator unit' for each pin now which makes it very easy to clip pins that aren't within the bounds of the visible map. This has helped performance a lot.
I still wonder though if Overlay adds a lot of overhead - would it be much faster to just draw the pins myself manually? Thanks On Nov 1, 11:27 pm, Mark Wyszomierski <[EMAIL PROTECTED]> wrote: > Hi, > > I have many pins I'd like to display on a map. I first tried adding > each as an Overlay, but this is way too slow, as each overlay tries > drawing itself even though it may not be visible within the screen > view. > > So the question is, is one overlay instance supposed to be used per > pin? Or is there some more efficient data structure to use with it? > > If we are supposed to use Overlay for this, I figured I could keep the > "mercator" unit of each of my overlay cached, then recalculate the > mercator unit of the top-left, bottom-right points of the map view to > figure if an overlay should be drawn or not, which will probably be > much faster. > > I'm guessing there's already some built-in way to draw a large number > of Overlays, as google is known for fast algorithms and efficiency? > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

