how to clear all map overlays or markers from google map in android?

Posted by UMMA on Stack Overflow See other posts from Stack Overflow or by UMMA
Published on 2010-03-31T13:49:32Z Indexed on 2010/03/31 13:53 UTC
Read the original article Hit count: 528

Filed under:
|

dear friends,

i want to clear all map overlays or markers from google map and using following code

if(!mapOverlays.isEmpty())
     {
     mapOverlays.clear();

 }

which is giving me exception can any one guide me? am i right or wrong if i am wrong then kindly provide me the solution to my problem.

i want map clean if there is any marker on it.

any help would be appriciated.

© Stack Overflow or respective owner

Related posts about android

Related posts about googlemaps