google_map.html
1.59 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Map</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map {
margin: 0;
padding: 0;
height: 100%;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
function initMap() {
var SSRCentre = new google.maps.LatLng(50.6268311, 3.1444453);
var map = new google.maps.Map(document.getElementById('map'),{
zoom: 15,
mapTypeControl: false,
zoomControl: false,
streetViewControl: false,
center: SSRCentre,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
var contentString = '<div id="content">'+
'<div id="infoCentre">'+
'</div>'+
'<h1 id="firstHeading" class="firstHeading">SSR Marc Sautelet</h1>'+
'<div id="bodyContent">'+
'<p><b>SSR Marc Sautelet</b>, est un centre de '+
'rééducation fonctionnelle pour les enfant. '+
'Le centre propose des soins de suite'+
' et de réadaptation pediatrique'+
'.</p>'+
'<p>Visiter nos site internet: <a href="http://www.marcsautelet.com/">'+
'ssr marc sautelet</a> '+
'</div>'+
'</div>';
var infowindow = new google.maps.InfoWindow({
content: contentString
});
var marker = new google.maps.Marker({
position: SSRCentre,
map: map,
});
marker.addListener('click', function() {
infowindow.open(map, marker);
});
}
google.maps.event.addDomListener(window, 'load', initMap);
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>