Skip to content

Commit 5719368

Browse files
Update dist folder [skip ci] (#902)
1 parent a8a1144 commit 5719368

File tree

10 files changed

+43
-59
lines changed

10 files changed

+43
-59
lines changed

dist/samples/advanced-markers-accessibility/app/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
<link rel="stylesheet" type="text/css" href="./style.css" />
1313
<script type="module" src="./index.js"></script>
14-
</head>
15-
<body>
16-
<div id="map"></div>
1714

1815
<!-- prettier-ignore -->
1916
<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))})
20-
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script>
17+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
18+
</head>
19+
<body>
20+
<gmp-map zoom="12" center="34.84555,-111.8035" map-id="4504f8b37365c3d0"></gmp-map>
2121
</body>
2222
</html>
2323
<!-- [END maps_advanced_markers_accessibility] -->

dist/samples/advanced-markers-accessibility/app/index.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
*/
66

77
// [START maps_advanced_markers_accessibility]
8+
const mapElement = document.querySelector('gmp-map') as google.maps.MapElement;
9+
810
async function initMap() {
911
// Request needed libraries.
1012
const { Map, InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
1113
const { AdvancedMarkerElement, PinElement } = await google.maps.importLibrary("marker") as google.maps.MarkerLibrary;
1214

13-
const map = new Map(document.getElementById("map") as HTMLElement, {
14-
zoom: 12,
15-
center: { lat: 34.84555, lng: -111.8035 },
16-
mapId: '4504f8b37365c3d0',
17-
});
18-
1915
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
2016
// receives the initial focus when tab is pressed. Use arrow keys to move
2117
// between markers; press tab again to cycle through the map controls.
@@ -47,19 +43,19 @@ async function initMap() {
4743

4844
// Create the markers.
4945
tourStops.forEach(({position, title}, i) => {
46+
// [START maps_advanced_markers_accessibility_marker]
5047
const pin = new PinElement({
5148
//@ts-ignore
5249
glyphText: `${i + 1}`,
5350
scale: 1.5,
5451
});
55-
// [START maps_advanced_markers_accessibility_marker]
5652
const marker = new AdvancedMarkerElement({
5753
position,
58-
map,
5954
title: `${i + 1}. ${title}`,
60-
content: pin.element,
6155
gmpClickable: true,
6256
});
57+
marker.append(pin);
58+
mapElement.append(marker);
6359
// [END maps_advanced_markers_accessibility_marker]
6460
// [START maps_advanced_markers_accessibility_event_listener]
6561
// Add a click listener for each marker, and set up the info window.
@@ -74,4 +70,4 @@ async function initMap() {
7470
}
7571

7672
initMap();
77-
// [END maps_advanced_markers_accessibility]
73+
// [END maps_advanced_markers_accessibility]

dist/samples/advanced-markers-accessibility/dist/assets/index-8ZTzap-z.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/advanced-markers-accessibility/dist/assets/index-DuBZ4WNk.js

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

dist/samples/advanced-markers-accessibility/dist/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
<head>
1010
<title>Advanced Marker Accessibility</title>
1111

12-
<script type="module" crossorigin src="./assets/index-DuBZ4WNk.js"></script>
13-
<link rel="stylesheet" crossorigin href="./assets/index-DW_Ml_OD.css">
14-
</head>
15-
<body>
16-
<div id="map"></div>
1712

1813
<!-- prettier-ignore -->
1914
<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))})
20-
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script>
15+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
16+
<script type="module" crossorigin src="./assets/index-8ZTzap-z.js"></script>
17+
<link rel="stylesheet" crossorigin href="./assets/index-DW_Ml_OD.css">
18+
</head>
19+
<body>
20+
<gmp-map zoom="12" center="34.84555,-111.8035" map-id="4504f8b37365c3d0"></gmp-map>
2121
</body>
2222
</html>
2323
<!-- [END maps_advanced_markers_accessibility] -->

dist/samples/advanced-markers-accessibility/docs/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
<link rel="stylesheet" type="text/css" href="./style.css" />
1313
<script type="module" src="./index.js"></script>
14-
</head>
15-
<body>
16-
<div id="map"></div>
1714

1815
<!-- prettier-ignore -->
1916
<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))})
20-
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script>
17+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
18+
</head>
19+
<body>
20+
<gmp-map zoom="12" center="34.84555,-111.8035" map-id="4504f8b37365c3d0"></gmp-map>
2121
</body>
2222
</html>
2323
<!-- [END maps_advanced_markers_accessibility] -->

dist/samples/advanced-markers-accessibility/docs/index.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
* SPDX-License-Identifier: Apache-2.0
66
*/
77
// [START maps_advanced_markers_accessibility]
8+
const mapElement = document.querySelector('gmp-map');
89
async function initMap() {
910
// Request needed libraries.
1011
const { Map, InfoWindow } = await google.maps.importLibrary("maps");
1112
const { AdvancedMarkerElement, PinElement } = await google.maps.importLibrary("marker");
12-
const map = new Map(document.getElementById("map"), {
13-
zoom: 12,
14-
center: { lat: 34.84555, lng: -111.8035 },
15-
mapId: '4504f8b37365c3d0',
16-
});
1713
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
1814
// receives the initial focus when tab is pressed. Use arrow keys to move
1915
// between markers; press tab again to cycle through the map controls.
@@ -43,19 +39,19 @@ async function initMap() {
4339
const infoWindow = new InfoWindow();
4440
// Create the markers.
4541
tourStops.forEach(({ position, title }, i) => {
42+
// [START maps_advanced_markers_accessibility_marker]
4643
const pin = new PinElement({
4744
//@ts-ignore
4845
glyphText: `${i + 1}`,
4946
scale: 1.5,
5047
});
51-
// [START maps_advanced_markers_accessibility_marker]
5248
const marker = new AdvancedMarkerElement({
5349
position,
54-
map,
5550
title: `${i + 1}. ${title}`,
56-
content: pin.element,
5751
gmpClickable: true,
5852
});
53+
marker.append(pin);
54+
mapElement.append(marker);
5955
// [END maps_advanced_markers_accessibility_marker]
6056
// [START maps_advanced_markers_accessibility_event_listener]
6157
// Add a click listener for each marker, and set up the info window.

dist/samples/advanced-markers-accessibility/docs/index.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,13 @@
55
*/
66

77
// [START maps_advanced_markers_accessibility]
8+
const mapElement = document.querySelector('gmp-map') as google.maps.MapElement;
9+
810
async function initMap() {
911
// Request needed libraries.
1012
const { Map, InfoWindow } = await google.maps.importLibrary("maps") as google.maps.MapsLibrary;
1113
const { AdvancedMarkerElement, PinElement } = await google.maps.importLibrary("marker") as google.maps.MarkerLibrary;
1214

13-
const map = new Map(document.getElementById("map") as HTMLElement, {
14-
zoom: 12,
15-
center: { lat: 34.84555, lng: -111.8035 },
16-
mapId: '4504f8b37365c3d0',
17-
});
18-
1915
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
2016
// receives the initial focus when tab is pressed. Use arrow keys to move
2117
// between markers; press tab again to cycle through the map controls.
@@ -47,19 +43,19 @@ async function initMap() {
4743

4844
// Create the markers.
4945
tourStops.forEach(({position, title}, i) => {
46+
// [START maps_advanced_markers_accessibility_marker]
5047
const pin = new PinElement({
5148
//@ts-ignore
5249
glyphText: `${i + 1}`,
5350
scale: 1.5,
5451
});
55-
// [START maps_advanced_markers_accessibility_marker]
5652
const marker = new AdvancedMarkerElement({
5753
position,
58-
map,
5954
title: `${i + 1}. ${title}`,
60-
content: pin.element,
6155
gmpClickable: true,
6256
});
57+
marker.append(pin);
58+
mapElement.append(marker);
6359
// [END maps_advanced_markers_accessibility_marker]
6460
// [START maps_advanced_markers_accessibility_event_listener]
6561
// Add a click listener for each marker, and set up the info window.
@@ -74,4 +70,4 @@ async function initMap() {
7470
}
7571

7672
initMap();
77-
// [END maps_advanced_markers_accessibility]
73+
// [END maps_advanced_markers_accessibility]

dist/samples/advanced-markers-accessibility/jsfiddle/demo.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
<link rel="stylesheet" type="text/css" href="./style.css" />
1313
<script type="module" src="./index.js"></script>
14-
</head>
15-
<body>
16-
<div id="map"></div>
1714

1815
<!-- prettier-ignore -->
1916
<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))})
20-
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script>
17+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
18+
</head>
19+
<body>
20+
<gmp-map zoom="12" center="34.84555,-111.8035" map-id="4504f8b37365c3d0"></gmp-map>
2121
</body>
2222
</html>
2323

dist/samples/advanced-markers-accessibility/jsfiddle/demo.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
* SPDX-License-Identifier: Apache-2.0
66
*/
77

8+
const mapElement = document.querySelector('gmp-map');
89
async function initMap() {
910
// Request needed libraries.
1011
const { Map, InfoWindow } = await google.maps.importLibrary("maps");
1112
const { AdvancedMarkerElement, PinElement } = await google.maps.importLibrary("marker");
12-
const map = new Map(document.getElementById("map"), {
13-
zoom: 12,
14-
center: { lat: 34.84555, lng: -111.8035 },
15-
mapId: '4504f8b37365c3d0',
16-
});
1713
// Set LatLng and title text for the markers. The first marker (Boynton Pass)
1814
// receives the initial focus when tab is pressed. Use arrow keys to move
1915
// between markers; press tab again to cycle through the map controls.
@@ -43,19 +39,19 @@ async function initMap() {
4339
const infoWindow = new InfoWindow();
4440
// Create the markers.
4541
tourStops.forEach(({ position, title }, i) => {
42+
4643
const pin = new PinElement({
4744
//@ts-ignore
4845
glyphText: `${i + 1}`,
4946
scale: 1.5,
5047
});
51-
5248
const marker = new AdvancedMarkerElement({
5349
position,
54-
map,
5550
title: `${i + 1}. ${title}`,
56-
content: pin.element,
5751
gmpClickable: true,
5852
});
53+
marker.append(pin);
54+
mapElement.append(marker);
5955

6056

6157
// Add a click listener for each marker, and set up the info window.

0 commit comments

Comments
 (0)