<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0">
    <meta charset="utf-8">
    <title>KML Layers</title>
    <style>
      /* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
      #map {
        height: 100%;
      }
      /* Optional: Makes the sample page fill the window. */
      html, body {
        height: 100%;
        margin: 0;
        padding: 0;
      }
    </style>
  </head>
  <body>
    <div id="map"></div>
    <script>

      function initMap() {
        var map = new google.maps.Map(document.getElementById('map'), {
          zoom: 11,
          center: {lat: 34.68366, lng: 137.49305}
        });
        map.setMapTypeId(google.maps.MapTypeId.SATELLITE);
        var randomStr = String(Math.random());
        var ctaLayer = new google.maps.KmlLayer({
          url: 'http:// [pwebT[oURL] /latest.kml?'+randomStr,
          map: map
        });
      }
    </script>
    <script async defer
    src="https://maps.googleapis.com/maps/api/js?key=[GoogleMapAPI Key擾ĉ]&callback=initMap">
    </script>
  </body>
</html>


