We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2de995 commit b7a40cdCopy full SHA for b7a40cd
samples/place-autocomplete-element/index.ts
@@ -10,9 +10,7 @@ async function initMap(): Promise<void> {
10
// Request needed libraries.
11
await google.maps.importLibrary("places") as google.maps.PlacesLibrary;
12
// Create the input HTML element, and append it.
13
- //@ts-ignore
14
- const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement();
15
+ const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement({});
16
document.body.appendChild(placeAutocomplete);
17
// [END maps_place_autocomplete_element_add]
18
0 commit comments