Rather than testing for the overlay types that you don't want, why not
test for the overlay types that you do want.

if (overlay instanceof GPolygon) {
  ...
}

However, you might be better off making your marker {clickable:false}
and then just testing for "if (!overlay)"

-- 
Mike Williams
-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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.


Reply via email to