I haven't tried doing this with an overlay but if you can afford to use a polygon instead, I can confirm that will work. As a fallback I believe you could surround the overlay with a transparent polygon.
-- Sent from my Palm Pre tomar wrote: Hi, I am facing a small issue. When I am trying to open a info window on click of a custom overlay, but Its not working. However same is working with marker. As far as I know both extends MVC object but I am not able to find the cause of problem. ... .. ... var marker = new google.maps.Marker({ position: myLatLng, map: map, title: 'HELLO' }); var infowindow = new google.maps.InfoWindow({ 'content': 'Hello Tomar' }); Working code for marker-> google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); Not Wroking for overlay -> // USGSOverlay is custom overlay so overlay is coming on map - copied sample code var overlay = new USGSOverlay(bounds, srcImage, map); // not able to add the listener for click event on overlay :( google.maps.event.addListener(overlay, 'click', function() { infowindow.open(map,overlay); }); Would someone please suggest me to make this working? -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.