1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| function AjouterMarqueurVehiLibre(Lat, Long, novehi) {
var marker = new MarkerWithLabel({
position: new google.maps.LatLng(Lat, Long),
draggable: false,
map: map,
labelContent: novehi,
labelAnchor: new google.maps.Point(22, 0),
labelClass: "labelsactif", // the CSS class for the label
labelStyle: {opacity: 0.75},
labelVisible: true,
icon:"icones/gps_circulant.png"
});
var iw = new google.maps.InfoWindow({
content: "Nom Prenom"
});
google.maps.event.addListener(marker, "click", function (e) { iw.open(map, marker); });
markersCirculant.push(marker);
bounds.extend(new google.maps.LatLng(Lat, Long));
} |
Partager