Not very easy to read obfuscated code but I found your click handler:

  google.maps.event.addListener(H, "click", function ()
    {
        infowindow.close();
        infowindow = new google.maps.InfoWindow({
            content : '<div class="iw">' + baseloc.lsd[q].info + "</
div>"
        });
        infowindow.open(map, H)
    });


At the time when 'click' takes place, your q++ counter has made its
work and the value of [q] is not what you expected.

You should create the 'click' handler by a separate function where you
pass the content. Also you don't have to create a new instance of
InfoWindow by each click.

See this example:
http://koti.mbnet.fi/ojalesa/boundsbox/makemarker.htm
-- 
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