Hi everybody,

I have some problem with InfoWindow which should appear when someone
clicks on a marker.

Here is the code:

while(latNodes[i] != null){

        var marker = new GMarker(new  LatLng(latNodes
[i].firstChild.nodeValue,lngNodes[i].firstChild.nodeValue));
                                                                                
                                GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml("Marker <b>"+i+"</b>");});

map.addOverlay(marker);
i++;
}

The problem is that the window appears everytime on the last marker
that was set to the map..even when the user clicks on some other marker

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to