No, you can add/remove, but if you insert or remove you need to set the last selected index to -1.
On Oct 30, 8:45 am, Tim <[email protected]> wrote: > Hi, > > I've been reading the (shoddy) documentation for the Google Maps API > (MapActivity et al), and I think I have roughly worked out how it > works. It seems that if you want to add a marker overlay you can use > ItemizedOverlay easily, but you have to add all your markers at once. > There doesn't seem to be any way to remove them. > > What I want to do is query markers from an online database as the user > pans around (in the same way the actual map tiles are fetched). Is > there a simple way to do this? > > As far as I can tell I need to subclass Overlay and implement the draw > method, but where is the best place to put the code that fetches new > markers when the map is panned? There doesn't seem to be an > onMapChanged() method anywhere. My best guess is MapController.onKey() > but that seems wrong. > > Any suggestions? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

