Hi,

I have an overlay list which I retrieve it like this:

List<Overlay> overlays = mapView.getOverlays();

So in this list I have elements of the type userOverlay and
picOverlay..
How can I do to erase ALL occurences of userOverlay but leave all the
others?
I've been playing around with the List methods but I can't make it
work, I've tried:

                  while(overlays.contains(userOverlay)==true){
                                  overlays.remove(userOverlay);
                  }

Which made sense to me.. but it doesn't work..
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

Reply via email to