1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
| <html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Localisation des anciens de France</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize(){
var dataECOLE = new Array();
dataECOLE[0] = new Array('Toulouse', 'François Test', 43.549251,1.505113, 'Eurogiciel', 'http://www.wmaker.net/firstservices/photo/290113-361383.jpg' , '<p>blabla</p>');
dataECOLE[1] = new Array('Toulouse', 'Jean Pierre Unitaire', 43.640709,1.371717, 'Sogeti Region', 'http://www.stepstone.be/upload_BE/logo/S/logoSogeti_Belgium_467BFR.gif', ' ');
var centreCarte = new google.maps.LatLng(46.396958,2.655029);
var optionsCarte = {
zoom: 7,
center: centreCarte,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var maCarte = new google.maps.Map(document.getElementById("laCarteECOLE"), optionsCarte);
var marqueurTab = new Array();
var infoBulleTab = new Array();
for (var i = 0; i < dataECOLE.length; i++) {
var point = new google.maps.LatLng(dataECOLE[i][2], dataECOLE[i][3]);
var optionsMarqueur = {
position: point,
map: maCarte,
title: dataECOLE[i][1]
}
marqueurTab[i] = new google.maps.Marker(optionsMarqueur);
infoBulleTab[i] = new google.maps.InfoWindow({
content: '<div id="conteneurInfoBulle">' +
'<h1>' + dataECOLE[i][1] + '</h1>' +
'<h2>Entreprise : ' +dataECOLE[i][4] + '</h2>' +
'<div id="texteInfoBulle">' +
'<div id="lettrineImage"><img src="'+dataECOLE[i][5] +'" title="Logo Entreprise" /></div>' +
dataECOLE[i][6] +
'</div>' +
'</div> '
})
var mark = marqueurTab[i] ;
var infoBu = infoBulleTab[i];
google.maps.event.addListener( mark , 'click', function() {
infoBu.open(maCarte, this );
});
}
}
</script>
<style type="text/css">
#conteneurInfoBulle{
margin:0;
padding:0;
width: 370px;
}
#conteneurInfoBulle h1{
font:20px italic "Times New Roman", Times, serif;
color:#267AA8;
text-align:center;
}
#conteneurInfoBulle h2{
font:17px "Times New Roman", Times, serif;
margin:.5em 0;
padding:0;
text-align:center;
color:orange;
}
#texteInfoBulle{
margin:0;
padding:0;
font:11px "Trebuchet MS",sans-serif;
}
#texteInfoBulle p{
margin:.5em 0;
padding:0;
text-indent:2em;
text-align:justify;
}
#lettrineImage{
float: left;
margin: 0 .5em .5em 0;
width: 220px;
height: 163px;
}
#laCarteECOLE{
height:100%
}
-->
</style>
</head>
<body onload="initialize()">
<div id="laCarteECOLE" ></div>
<noscript>
<p>Attention : </p>
<p>Afin de pouvoir utiliser Google Maps, JavaScript doit être activé.</p>
<p>Or, il semble que JavaScript est désactivé ou qu'il ne soit pas supporté par votre navigateur.</p>
<p>Pour afficher Google Maps, activez JavaScript en modifiant les options de votre navigateur, puis essayez à nouveau.</p>
</noscript>
</body>
</html> |
Partager