One possible way is to hide everything on the dragstart/zoom event and let them reappear on dragend/zoomend.
Didnt check the docs for the right events. But thats a way to do it, just be sure to use hide, not remove/add. 2009/7/1 guinyard <[email protected]> > > I've seen a number of posts about dealing with "too many points", but > I still haven't found what I'm looking for. I'm working on a Maps app > in Android, and I've figured out the proper bounding logic to make > sure I'm only drawing up to several hundred passive GeoPoints as > circles when my Overlay draws. It still takes a few seconds to > happen. I notice that when I pan or zoom, my overloaded draw() method > is called 10-12 times before the screen 'settles', for lack of a > better term. I figure this makes sense because the pan/zoom is trying > to smoothly animate the map to it's settled state, and so for each > frame of the animation, it asks my Overlay to draw itself. eh? Since > it takes a while to draw itself once, it *really* slows up pan and > zoom requests. > > So, I'd like my Overlay to only draw after the map has 'settled' after > a pan or zoom request. I'm perfectly fine with my points disappearing > during the pan/zoom, I'll just draw them back after it's done. Is > there an event I can listen for? Should my overloaded draw() method > start a timer, and keep restarting it on subsequent calls, and only > after it expires I should then go through and draw all my points? Any > pointers? > > > > -- Bjorn Brala ---------------- www.GeoStart.nl/english/ - Google maps - Swis Webdesign twitter.com/bbrala --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
