index1.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Add a Map with Markers using HTML</title>
  5. <link rel="stylesheet" type="text/css" href="./style.css" />
  6. <script type="module" src="./index.js"></script>
  7. </head>
  8. <body>
  9. <gmp-map
  10. center="43.4142989,-124.2301242"
  11. zoom="4"
  12. map-id="DEMO_MAP_ID"
  13. style="height: 400px"
  14. >
  15. <gmp-advanced-marker
  16. position="37.4220656,-122.0840897"
  17. title="Mountain View, CA"
  18. ></gmp-advanced-marker>
  19. <gmp-advanced-marker
  20. position="47.648994,-122.3503845"
  21. title="Seattle, WA"
  22. ></gmp-advanced-marker>
  23. </gmp-map>
  24. <!--
  25. The `defer` attribute causes the script to execute after the full HTML
  26. document has been parsed. For non-blocking uses, avoiding race conditions,
  27. and consistent behavior across browsers, consider loading using Promises. See
  28. https://developers.google.com/maps/documentation/javascript/load-maps-js-api
  29. for more information.
  30. -->
  31. <script
  32. src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD-nVI43AYI9qp4rsQMJgN6abyPdn3QRY0&libraries=maps,marker&v=beta"
  33. defer
  34. ></script>
  35. </body>
  36. </html>