Simple Map

by Wolf

HTML

<div id="map"></div>
<!-- Replace the value of the key parameter with your own API key. -->
<script src="https://maps.googleapis.com/maps/api/js?callback=initMap&key=AIzaSyCOW7b0eVJzLBlTz1eY9XP04VJ48C_uaMQ&v=quarterly" async defer></script>

CSS

/* 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;
}

JavaScript

function initMap() {
  const QuakeZoneKMLUrl= 'https://www.incontroltower.com/Content/KMLs/EQ_RP475_Main_Small.kmz';
  const BrokenQuakeZoneKMLUrl='http://geo.bergenheim.net/EQ_RP475_Main_Small_Fixed2.kmz';
FixedQuakeZoneKMLUrl='http://geo.bergenheim.net/EQ_RP475_Main_Small_Fixed2.kmz';
    var pointA = new google.maps.LatLng(0, 180),
        myOptions = {
            zoom: 3,
            center: pointA
        },
 map = new google.maps.Map(document.getElementById('map'), myOptions),
        // Instantiate a directions service.        
        quakelayer = new google.maps.KmlLayer({
        	  url: FixedQuakeZoneKMLUrl,
            preserveViewport: true,
            map: map
        });
}