google_map.html 1.59 KB
<!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>