I'm interested in looking up establishments close to points on a map that a user selects by clicking. I added a click handler to the map using google.maps.event.addListener, which picks up the lat/lng of the clicked location. Works great.
The problem is that the map has POIs that when clicked, don't fire the normal event and display their own infowindow, so I have no idea where the user clicked. I can write some terrible code to inject content into the info window, but I'm not sure how to figure out the lat/lng of the POI.
In order of best solution to worst, I'd like to do one of the following:
1. Register for some kind of event to be notified when user click on POI, set my own content for the info window, and be notified of the lat/lng of POI.
2. Disable this infowindow for POIs, have the normal click handler fire.
3. Have the normal click handler fire when POI is clicked, as seen on https://developers.google.com/maps/documentation/javascript/events
4. Disable the POIs from showing up.
Any advice?