diff --git a/dist/samples/place-autocomplete-element/app/index.ts b/dist/samples/place-autocomplete-element/app/index.ts index 9ebc446650..24d79c5d0a 100644 --- a/dist/samples/place-autocomplete-element/app/index.ts +++ b/dist/samples/place-autocomplete-element/app/index.ts @@ -7,9 +7,7 @@ async function initMap(): Promise { // Request needed libraries. //@ts-ignore - const [{ Map }] = await Promise.all([ - google.maps.importLibrary("places"), - ]); + await google.maps.importLibrary("places") as google.maps.PlacesLibrary; // Create the input HTML element, and append it. //@ts-ignore const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(); diff --git a/dist/samples/place-autocomplete-element/docs/index.js b/dist/samples/place-autocomplete-element/docs/index.js index 38cc48eb55..07215ae358 100644 --- a/dist/samples/place-autocomplete-element/docs/index.js +++ b/dist/samples/place-autocomplete-element/docs/index.js @@ -8,7 +8,8 @@ async function initMap() { // [START maps_place_autocomplete_element_add] // Request needed libraries. //@ts-ignore - const [{ Map }] = await Promise.all([google.maps.importLibrary("places")]); + await google.maps.importLibrary("places"); + // Create the input HTML element, and append it. //@ts-ignore const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(); diff --git a/dist/samples/place-autocomplete-element/iframe/index.html b/dist/samples/place-autocomplete-element/iframe/index.html index babeb3afe0..252cc9b50b 100644 --- a/dist/samples/place-autocomplete-element/iframe/index.html +++ b/dist/samples/place-autocomplete-element/iframe/index.html @@ -8,7 +8,7 @@ Place Autocomplete element - + diff --git a/dist/samples/place-autocomplete-element/jsfiddle/demo.js b/dist/samples/place-autocomplete-element/jsfiddle/demo.js index 5537a6333c..c12ca349a0 100644 --- a/dist/samples/place-autocomplete-element/jsfiddle/demo.js +++ b/dist/samples/place-autocomplete-element/jsfiddle/demo.js @@ -6,7 +6,8 @@ async function initMap() { // Request needed libraries. //@ts-ignore - const [{ Map }] = await Promise.all([google.maps.importLibrary("places")]); + await google.maps.importLibrary("places"); + // Create the input HTML element, and append it. //@ts-ignore const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement(); diff --git a/dist/samples/place-autocomplete-element/playground/index.ts b/dist/samples/place-autocomplete-element/playground/index.ts index 96d8ce9af6..f52af44f3d 100644 --- a/dist/samples/place-autocomplete-element/playground/index.ts +++ b/dist/samples/place-autocomplete-element/playground/index.ts @@ -1,7 +1,7 @@ async function initMap(): Promise { // Request needed libraries. //@ts-ignore - const [{ Map }] = await Promise.all([google.maps.importLibrary("places")]); + (await google.maps.importLibrary("places")) as google.maps.PlacesLibrary; // Create the input HTML element, and append it. //@ts-ignore const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement();