Coloco varios markers pero al clicar en cualquiera de ellos siempre se
abre la infoWindow de uno de ellos, ¿Alguien pude aportar alguna idea?
for(var i=0; i<datos.length; i++)
{
id=datos[i].id;
nombre=datos[i].nombre;
latitud=datos[i].lat;
longitud=datos[i].lon;
coordenadas= new GLatLng(latitud,longitud);
marcador= new GMarker(coordenadas,icono);
GEvent.addListener(marcador,"click",function()
{marcador.openInfoWindowHtml(
"<strong>"+"<a style='text-decoration: none'
href='sitio.xhtml'>"+nombre+"</a>
);});
map.addOverlay(marcador);
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---