overlay problems

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

overlay problems

Postby musicwithme » Sun Sep 05, 2010 4:46 am

i have multiple overlays now. how can i remove the "A" balloon and the rute to A?

i tried

Code: Select all
List<Overlay> mapOverlays = Mapview.getOverlays();

mapOverlays.clear();


but,it remove all the overlay on map.

anyone have a good ideal?
Image
Image
musicwithme
Freshman
Freshman
 
Posts: 3
Joined: Sun Sep 05, 2010 3:42 am

Top

Re: overlay problems

Postby kyosen » Tue Sep 21, 2010 9:41 pm

Usually you have a List<OverlayItem> object so you can remove the especific overlay of your balloon and call map.invalidate() if you want to force the draw method to refresh your map. I don't know if the route will be automatically refresh.

List<OverlayItem> items = new ArrayList<OverlayItem>();
...
items.remove(yourOverlayItem);
...
mapView.invalidate();

This an idea. If you post some piece of your code we could help you a little more.
kyosen
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Apr 22, 2010 9:02 am

Re: overlay problems

Postby musicwithme » Mon Oct 04, 2010 4:10 pm

thanks a lot. the problem have been solved.
musicwithme
Freshman
Freshman
 
Posts: 3
Joined: Sun Sep 05, 2010 3:42 am

Re: overlay problems

Postby ozmank » Wed May 04, 2011 7:50 am

And thannks for not sharing the solution
ozmank
Freshman
Freshman
 
Posts: 3
Joined: Tue Nov 30, 2010 8:21 am

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 7 guests