index.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <html>
  2. <head>
  3. <title>Simple Map</title>
  4. <script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
  5. <style>
  6. /*
  7. * Always set the map height explicitly to define the size of the div element
  8. * that contains the map.
  9. */
  10. #map {
  11. height: 100%;
  12. }
  13. /*
  14. * Optional: Makes the sample page fill the window.
  15. */
  16. html,
  17. body {
  18. height: 100%;
  19. margin: 0;
  20. padding: 0;
  21. }
  22. </style>
  23. <script type="module" src="./src/index.ts"></script>
  24. </head>
  25. <body>
  26. <div id="map"></div>
  27. <!--
  28. The `defer` attribute causes the callback to execute after the full HTML
  29. document has been parsed. For non-blocking uses, avoiding race conditions,
  30. and consistent behavior across browsers, consider loading using Promises
  31. with https://www.npmjs.com/package/@googlemaps/js-api-loader.
  32. -->
  33. <script
  34. src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAFu0wZgY6_IUgZ-dU7T_KXLWCjEqTNzfg&callback=initMap&v=weekly"
  35. defer
  36. ></script>
  37. </body>
  38. </html>