ok, so finally i managed to get it work, i used a function that
creates a new marker insted of passing all the data in the cycle:
function createMarker(point,html) {
var marker = new GMarker(point, {icon: icon});
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
thx for this link http://econym.org.uk/gmap/basic1.htm :) i still
don`t know why it didnt work when i tried to add:
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(htmlinfo);
});
into the cycle...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---