Geo-Coding should be performed in a separate function. currently you are doing geocoding for all the markers within a loop which is continuously hitting the geo-coder service with very less span of time, Google will not allow this & it will throw you the QUERY_OVER_LIMIT error. So better you can do in the following way: 1. use your array object to create markers in the first function. 2. at the end of the first function call another function by passing the marker, content of infowindow and lat/lngs. 3. In the 2nd function add the click event listener to the marker and within that listener function do the geocoding and add that result of the geo-coding to the infowindow content and open the infowindow.
Cheers Sankar -- 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.
