Bonjour, je voudrais ajouter des infobuls pour mes markers dans google MAP V3 mais je n'arrive.
les markers s'affichent mais pas les infobulles
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 for( var i=0; i< coordones.length;i=i+2) { var marqueur = new google.maps.Marker({ position: new google.maps.LatLng(coordones[i],coordones[i+1]),map: carte }); var contenu = "test marker"; var infowindow = new google.maps.InfoWindow({ content: contenu }); //Création du listener du clic de souris sur le marqueur google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker);}); }
Partager