On 22 March 2011 10:58, thebit <[email protected]> wrote:
> Hi,
> I tried to rename "infowindow2" in "infowindow[i]" but it does not
> works: the page is not loaded.

That wasn't what was suggested. You should continue to use
var infowindow2 = new google.maps.InfoWindow(

and replace [2] in the following line with [i]:
position: getPosition(loadCoordinates[2]['lat'], loadCoordinates[2]['lng'])

so it looks like this:
position: getPosition(loadCoordinates[i]['lat'], loadCoordinates[i]['lng'])

This means that position will vary according to the loop counter,
rather than always using the value of loadCoordinates[2].

-- 
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.

Reply via email to