Hi Daniel, check out mapview-overlay-manager. http://code.google.com/p/mapview-overlay-manager/
its a library that exactly addresses to your needs. would be great if you can give me some feedback. Greetings, Christoph On 7 Aug., 14:01, Cachapa <cach...@gmail.com> wrote: > Hi, > > I have a class which extends MapView and manages markers inside the > view. > > The trouble is I have a *lot* of markers to show (~12,000), and > loading them all at once doesn't really work, so I'm retrieving the > markers on demand so that at any time there will be only ~20 markers > on the map (at lower zoom levels the markers are condensed into a few > "area" markers). > > I need to set a listener for when the map drag animation stops so that > I can load the markers at this point, but I've tried everything from > setLayoutAnimationListener(this) to overriding onAnimationEnd > (Animation arg0) and onAnimationEnd() without any positive results > (those methods seem to never be called). > > My current "solution" is listening to a MotionEvent.ACTION_UP and > updating the map at that moment, but that makes the animation jerky, > and may load the wrong set of markers depending on how fast the user > was scrolling. > > So, does anyone know if it is possible to listen to the map's > animation? > > Cheers, > Daniel Cachapa --~--~---------~--~----~------------~-------~--~----~ 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-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---