Skip to content

Commit edf2f28

Browse files
Update dist folder [skip ci] (#274)
Co-authored-by: googlemaps-bot <[email protected]>
1 parent 9221fe5 commit edf2f28

File tree

19 files changed

+40
-30
lines changed

19 files changed

+40
-30
lines changed

dist/samples/place-autocomplete-element/app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<!-- prettier-ignore -->
1919
<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>
20+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
2121
</body>
2222
</html>
2323
<!-- [END maps_place_autocomplete_element] -->

dist/samples/place-autocomplete-element/app/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
async function initMap(): Promise<void> {
1919
// [START maps_place_autocomplete_element_add]
2020
// Request needed libraries.
21-
//@ts-ignore
2221
await google.maps.importLibrary("places") as google.maps.PlacesLibrary;
2322
// Create the input HTML element, and append it.
2423
//@ts-ignore
@@ -39,9 +38,9 @@ async function initMap(): Promise<void> {
3938
// [START maps_place_autocomplete_element_listener]
4039
// Add the gmp-placeselect listener, and display the results.
4140
//@ts-ignore
42-
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
41+
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
42+
const place = placePrediction.toPlace();
4343
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });
44-
4544
selectedPlaceTitle.textContent = 'Selected Place:';
4645
selectedPlaceInfo.textContent = JSON.stringify(
4746
place.toJSON(), /* replacer */ null, /* space */ 2);

dist/samples/place-autocomplete-element/dist/assets/index-DOD-xGL4.js renamed to dist/samples/place-autocomplete-element/dist/assets/index-NDKnhjGr.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/samples/place-autocomplete-element/dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
<head>
1010
<title>Place Autocomplete element</title>
1111

12-
<script type="module" crossorigin src="./assets/index-DOD-xGL4.js"></script>
12+
<script type="module" crossorigin src="./assets/index-NDKnhjGr.js"></script>
1313
<link rel="stylesheet" crossorigin href="./assets/index-e19utHT7.css">
1414
</head>
1515
<body>
1616
<p style="font-family: roboto, sans-serif">Search for a place here:</p>
1717

1818
<!-- prettier-ignore -->
1919
<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>
20+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
2121
</body>
2222
</html>
2323
<!-- [END maps_place_autocomplete_element] -->

dist/samples/place-autocomplete-element/docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<!-- prettier-ignore -->
1919
<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>
20+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
2121
</body>
2222
</html>
2323
<!-- [END maps_place_autocomplete_element] -->

dist/samples/place-autocomplete-element/docs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
async function initMap() {
1818
// [START maps_place_autocomplete_element_add]
1919
// Request needed libraries.
20-
//@ts-ignore
2120
await google.maps.importLibrary("places");
2221
// Create the input HTML element, and append it.
2322
//@ts-ignore
@@ -35,7 +34,8 @@ async function initMap() {
3534
// [START maps_place_autocomplete_element_listener]
3635
// Add the gmp-placeselect listener, and display the results.
3736
//@ts-ignore
38-
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => {
37+
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
38+
const place = placePrediction.toPlace();
3939
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });
4040
selectedPlaceTitle.textContent = 'Selected Place:';
4141
selectedPlaceInfo.textContent = JSON.stringify(place.toJSON(), /* replacer */ null, /* space */ 2);

dist/samples/place-autocomplete-element/docs/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
async function initMap(): Promise<void> {
1919
// [START maps_place_autocomplete_element_add]
2020
// Request needed libraries.
21-
//@ts-ignore
2221
await google.maps.importLibrary("places") as google.maps.PlacesLibrary;
2322
// Create the input HTML element, and append it.
2423
//@ts-ignore
@@ -39,9 +38,9 @@ async function initMap(): Promise<void> {
3938
// [START maps_place_autocomplete_element_listener]
4039
// Add the gmp-placeselect listener, and display the results.
4140
//@ts-ignore
42-
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction.
41+
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
42+
const place = placePrediction.toPlace();
4343
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });
44-
4544
selectedPlaceTitle.textContent = 'Selected Place:';
4645
selectedPlaceInfo.textContent = JSON.stringify(
4746
place.toJSON(), /* replacer */ null, /* space */ 2);

dist/samples/place-autocomplete-element/jsfiddle/demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<!-- prettier-ignore -->
1919
<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>
20+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
2121
</body>
2222
</html>
2323

dist/samples/place-autocomplete-element/jsfiddle/demo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
async function initMap() {
1818

1919
// Request needed libraries.
20-
//@ts-ignore
2120
await google.maps.importLibrary("places");
2221
// Create the input HTML element, and append it.
2322
//@ts-ignore
@@ -35,7 +34,8 @@ async function initMap() {
3534

3635
// Add the gmp-placeselect listener, and display the results.
3736
//@ts-ignore
38-
placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => {
37+
placeAutocomplete.addEventListener('gmp-select', async ({ placePrediction }) => {
38+
const place = placePrediction.toPlace();
3939
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });
4040
selectedPlaceTitle.textContent = 'Selected Place:';
4141
selectedPlaceInfo.textContent = JSON.stringify(place.toJSON(), /* replacer */ null, /* space */ 2);

dist/samples/place-autocomplete-map/app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<!-- prettier-ignore -->
2222
<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))})
23-
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "beta"});</script>
23+
({key: "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8", v: "weekly"});</script>
2424
</body>
2525
</html>
2626
<!-- [END maps_place_autocomplete_map] -->

0 commit comments

Comments
 (0)