test.html 756 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <style>
  7. html, body {
  8. height: 100%;
  9. width: 100%;
  10. margin: 0;
  11. padding: 0;
  12. }
  13. #map {
  14. height: 100%;
  15. width: 100%;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div id="map"></div>
  21. </body>
  22. <script>
  23. var map;
  24. function initMap() {
  25. map = new google.maps.Map(document.getElementById('map'), {
  26. center: {lat: 40.689104, lng: -74.044599},
  27. zoom: 16
  28. });
  29. }
  30. </script>
  31. <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCJ9w3VZc4WsOhZ2wDBJIbKVaePc1SMG3E&callback=initMap"
  32. async defer></script>
  33. </html>