views:

424

answers:

2

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.

A: 
mapView.invalidate();

i was missing to update map. now working fine. so the whole code look like

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

 }
UMMA
A: 

Wow, spent a couple hours trying until I found this thread, thanks much, and hope the docs/tuts on the G API were more clear. Or maybe if they had some web 2.0 right there (like PHP.net)...

daLoco