Thx for your answer. I didn't knew about MyLocationOverlay, seems exactly what I needed. About loading 400 overlays, well, my app is a bus stop locator and there are 400 bus stops in my city, so I don't know any other way to show all of them in a map without loading 400 overlays.
On 27 oct, 14:32, TreKing <[email protected]> wrote: > On Tue, Oct 26, 2010 at 4:52 PM, Pikoh <[email protected]> wrote: > > - I´m loading about 400 overlays in a mapview, but it takes 2-3 minutes. > > Is there any way to speed things up? > > Don't load 400 overlays. > > > - On the other hand, I use another overlay to point device gps position, > > but when location point change i need to delete this overlay to put it again > > in it's new position. > > You don't need to delete and replace - just update the overlay's location > and refresh. Or better yet, use MyLocationOverlay. > > > How can i delete this overlay without deleting all the others? > > If you insist, just: mMapView.getOverlays().remove(overlayToRemove); > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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

