We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee35ee3 commit 7e3d874Copy full SHA for 7e3d874
samples/place-autocomplete-element/index.ts
@@ -9,9 +9,7 @@ async function initMap(): Promise<void> {
9
// [START maps_place_autocomplete_element_add]
10
// Request needed libraries.
11
//@ts-ignore
12
- const [{ Map }] = await Promise.all([
13
- google.maps.importLibrary("places"),
14
- ]);
+ await google.maps.importLibrary("places") as google.maps.PlacesLibrary;
15
// Create the input HTML element, and append it.
16
17
const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement();
0 commit comments