Advertisement
mysapta

Load Map

Sep 13th, 2016
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.77 KB | None | 0 0
  1.  <!DOCTYPE html>
  2.  <html>
  3.    <head>
  4.      <title>Simple Map</title>
  5.      <meta name="viewport" content="initial-scale=1.0">
  6.      <meta charset="utf-8">
  7.      <style>
  8.        html, body {
  9.          height: 100%;
  10.          margin: 0;
  11.          padding: 0;
  12.        }
  13.        #map {
  14.          height: 100%;
  15.        }
  16.      </style>
  17.    </head>
  18.    <body>
  19.      <div id="map"></div>
  20.      <script>
  21.        var map;
  22.        function initMap() {
  23.          map = new google.maps.Map(document.getElementById('map'), {
  24.            center: {lat: -34.397, lng: 150.644},
  25.            zoom: 8
  26.          });
  27.        }
  28.      </script>
  29.      <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC9zW3rWTrCWqPyaNDtIWptCCeSC1dwpGk&callback=initMap"
  30.     async defer></script>
  31.    </body>
  32.  </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement