This code
for(i = 0;i<latlong.length;i++){
var marker = new GMarker(latlong[i]);
marker.num = i;
GEvent.addListener(marker , "click", function()
{
marker.openInfoWindow(text[marker.num]);
});
map.addOverlay(marker);
}
causes the same marker to open when clicked
I did same as:
http://code.google.com/apis/maps/documentation/examples/icon-custom.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---