You are looping the markersArray by a for-in loop:
for (i in markersArray) {
markersArray[i].setMap(null);
}
Prototype.js library adds some methods to every Array. The for-in loop
finds those methods too. It is always safer to use the 'normal' for
loop.
for (var i=0; i<markersArray.length; i++)
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.