| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <html>
- <head>
- <title>Simple Map</title>
- <script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
- <style>
- /*
- * 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;
- }
- </style>
- <script type="module" src="./src/index.ts"></script>
- </head>
- <body>
- <div id="map"></div>
- <!--
- The `defer` attribute causes the callback to execute after the full HTML
- document has been parsed. For non-blocking uses, avoiding race conditions,
- and consistent behavior across browsers, consider loading using Promises
- with https://www.npmjs.com/package/@googlemaps/js-api-loader.
- -->
- <script
- src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAFu0wZgY6_IUgZ-dU7T_KXLWCjEqTNzfg&callback=initMap&v=weekly"
- defer
- ></script>
- </body>
- </html>
|