I don't think that this loop will scan:

         for (var i; i < markers[clearthis].length; i++) {
            markers[clearthis][i].setMap(null);
         }

You have to set a numeric value for i

You have setMap(null); also in showOverlays();

The second one was easier to find.

-- 
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.

Reply via email to