Skip to content

Commit b60655b

Browse files
Update dist folder [skip ci] (#848)
1 parent added60 commit b60655b

File tree

10 files changed

+50
-22
lines changed

10 files changed

+50
-22
lines changed

dist/samples/web-components-map/app/index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
<link rel="stylesheet" type="text/css" href="./style.css" />
1313
<script type="module" src="./index.js"></script>
14-
<!-- prettier-ignore -->
15-
<script>(g => { var h, a, k, p = "The Google Maps JavaScript API", c = "google", l = "importLibrary", q = "__ib__", m = document, b = window; b = b[c] || (b[c] = {}); var d = b.maps || (b.maps = {}), r = new Set, e = new URLSearchParams, u = () => h || (h = new Promise(async (f, n) => { await (a = m.createElement("script")); e.set("libraries", [...r] + ""); for (k in g) e.set(k.replace(/[A-Z]/g, t => "_" + t[0].toLowerCase()), g[k]); e.set("callback", c + ".maps." + q); a.src = `https://maps.${c}apis.com/maps/api/js?` + e; d[q] = f; a.onerror = () => h = n(Error(p + " could not load.")); a.nonce = m.querySelector("script[nonce]")?.nonce || ""; m.head.append(a) })); d[l] ? console.warn(p + " only loads once. Ignoring:", g) : d[l] = (f, ...n) => r.add(f) && u().then(() => d[l](f, ...n)) })
16-
({ key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly" });</script>
1714
</head>
1815
<body>
1916
<!-- [START maps_web_components_map_gmpmap] -->
@@ -24,6 +21,17 @@
2421
style="height: 400px"
2522
></gmp-map>
2623
<!-- [END maps_web_components_map_gmpmap] -->
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=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&libraries=maps,marker&v=weekly"
33+
defer
34+
></script>
2735
</body>
2836
</html>
2937
<!-- [END maps_web_components_map] -->

dist/samples/web-components-map/app/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// [START maps_web_components_map]
88
// This example adds a map using web components.
99
async function initMap(): Promise<void> {
10-
await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
1110
console.log('Maps JavaScript API loaded.');
1211
}
1312

dist/samples/web-components-map/dist/assets/index-C4v-LbEc.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/samples/web-components-map/dist/assets/index-DgAohk_8.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

dist/samples/web-components-map/dist/index.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
<head>
1010
<title>Add a Map using HTML</title>
1111

12-
<!-- prettier-ignore -->
13-
<script>(g => { var h, a, k, p = "The Google Maps JavaScript API", c = "google", l = "importLibrary", q = "__ib__", m = document, b = window; b = b[c] || (b[c] = {}); var d = b.maps || (b.maps = {}), r = new Set, e = new URLSearchParams, u = () => h || (h = new Promise(async (f, n) => { await (a = m.createElement("script")); e.set("libraries", [...r] + ""); for (k in g) e.set(k.replace(/[A-Z]/g, t => "_" + t[0].toLowerCase()), g[k]); e.set("callback", c + ".maps." + q); a.src = `https://maps.${c}apis.com/maps/api/js?` + e; d[q] = f; a.onerror = () => h = n(Error(p + " could not load.")); a.nonce = m.querySelector("script[nonce]")?.nonce || ""; m.head.append(a) })); d[l] ? console.warn(p + " only loads once. Ignoring:", g) : d[l] = (f, ...n) => r.add(f) && u().then(() => d[l](f, ...n)) })
14-
({ key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly" });</script>
15-
<script type="module" crossorigin src="./assets/index-DgAohk_8.js"></script>
12+
<script type="module" crossorigin src="./assets/index-C4v-LbEc.js"></script>
1613
<link rel="stylesheet" crossorigin href="./assets/index-BKW5gvRo.css">
1714
</head>
1815
<body>
@@ -24,6 +21,17 @@
2421
style="height: 400px"
2522
></gmp-map>
2623
<!-- [END maps_web_components_map_gmpmap] -->
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=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&libraries=maps,marker&v=weekly"
33+
defer
34+
></script>
2735
</body>
2836
</html>
2937
<!-- [END maps_web_components_map] -->

dist/samples/web-components-map/docs/index.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
<link rel="stylesheet" type="text/css" href="./style.css" />
1313
<script type="module" src="./index.js"></script>
14-
<!-- prettier-ignore -->
15-
<script>(g => { var h, a, k, p = "The Google Maps JavaScript API", c = "google", l = "importLibrary", q = "__ib__", m = document, b = window; b = b[c] || (b[c] = {}); var d = b.maps || (b.maps = {}), r = new Set, e = new URLSearchParams, u = () => h || (h = new Promise(async (f, n) => { await (a = m.createElement("script")); e.set("libraries", [...r] + ""); for (k in g) e.set(k.replace(/[A-Z]/g, t => "_" + t[0].toLowerCase()), g[k]); e.set("callback", c + ".maps." + q); a.src = `https://maps.${c}apis.com/maps/api/js?` + e; d[q] = f; a.onerror = () => h = n(Error(p + " could not load.")); a.nonce = m.querySelector("script[nonce]")?.nonce || ""; m.head.append(a) })); d[l] ? console.warn(p + " only loads once. Ignoring:", g) : d[l] = (f, ...n) => r.add(f) && u().then(() => d[l](f, ...n)) })
16-
({ key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly" });</script>
1714
</head>
1815
<body>
1916
<!-- [START maps_web_components_map_gmpmap] -->
@@ -24,6 +21,17 @@
2421
style="height: 400px"
2522
></gmp-map>
2623
<!-- [END maps_web_components_map_gmpmap] -->
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=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&libraries=maps,marker&v=weekly"
33+
defer
34+
></script>
2735
</body>
2836
</html>
2937
<!-- [END maps_web_components_map] -->

dist/samples/web-components-map/docs/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// [START maps_web_components_map]
88
// This example adds a map using web components.
99
async function initMap() {
10-
await google.maps.importLibrary("maps");
1110
console.log('Maps JavaScript API loaded.');
1211
}
1312
initMap();

dist/samples/web-components-map/docs/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// [START maps_web_components_map]
88
// This example adds a map using web components.
99
async function initMap(): Promise<void> {
10-
await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
1110
console.log('Maps JavaScript API loaded.');
1211
}
1312

dist/samples/web-components-map/jsfiddle/demo.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
<link rel="stylesheet" type="text/css" href="./style.css" />
1313
<script type="module" src="./index.js"></script>
14-
<!-- prettier-ignore -->
15-
<script>(g => { var h, a, k, p = "The Google Maps JavaScript API", c = "google", l = "importLibrary", q = "__ib__", m = document, b = window; b = b[c] || (b[c] = {}); var d = b.maps || (b.maps = {}), r = new Set, e = new URLSearchParams, u = () => h || (h = new Promise(async (f, n) => { await (a = m.createElement("script")); e.set("libraries", [...r] + ""); for (k in g) e.set(k.replace(/[A-Z]/g, t => "_" + t[0].toLowerCase()), g[k]); e.set("callback", c + ".maps." + q); a.src = `https://maps.${c}apis.com/maps/api/js?` + e; d[q] = f; a.onerror = () => h = n(Error(p + " could not load.")); a.nonce = m.querySelector("script[nonce]")?.nonce || ""; m.head.append(a) })); d[l] ? console.warn(p + " only loads once. Ignoring:", g) : d[l] = (f, ...n) => r.add(f) && u().then(() => d[l](f, ...n)) })
16-
({ key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly" });</script>
1714
</head>
1815
<body>
1916

@@ -24,6 +21,17 @@
2421
style="height: 400px"
2522
></gmp-map>
2623

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=AIzaSyB41DRUbKWJHPxaFjMAwdrzWzbVKartNGg&libraries=maps,marker&v=weekly"
33+
defer
34+
></script>
2735
</body>
2836
</html>
2937

dist/samples/web-components-map/jsfiddle/demo.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
// This example adds a map using web components.
99
async function initMap() {
10-
await google.maps.importLibrary("maps");
1110
console.log('Maps JavaScript API loaded.');
1211
}
1312
initMap();

0 commit comments

Comments
 (0)