> google.maps.event.addListener(markerCluster, 'clusterclick',
> function(cluster) {
> if (map.getZoom() == 8) {
> infowindowarray[i].open(map, cluster);
...
That defines a function to be run _when_ the event occurs.Whatever your function is that includes that code ends, and local variables in its scope go away. Later on, the event occurs, your defined function is run, and variables it requires are looked for in global scope. In this case, they're not there. -- 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.
