On 11 November 2010 14:36, stopshinal <[email protected]> wrote: > So the question is how to clear markers in v2. > > for loop { > gmarker[i].setMap(null); // is the closest I could come up with, but > this is v3 > }
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.removeOverlay for loop { map.removeOverlay(gmarker[i]); } There is also http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.clearOverlays -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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/google-maps-api?hl=en.
