1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| for (i = 0; i < nb; i++) {
oMarker = new google.maps.Marker({
'optimized': false,
'map': oMap,
icon: monIconPerso,
'position': new google.maps.LatLng(data[i][0], data[i][1]),
title: "(" + name[i][0] + ", " + name[i][1] + ")"
});
// création d'une infobulle et affichage
var oInfo = new google.maps.InfoWindow({
'content': 'comment puis je faire ici !',
// contenu qui sera affiché
'map': oMap,
// carte sur laquelle est affichée l'InfoWindow
'position': new google.maps.LatLng(data[i][0], data[i][1]) // position d'affichage de l'InfoWindow
}); |
Partager