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 c83fbea commit d3a4c49Copy full SHA for d3a4c49
samples/place-autocomplete-map/index.ts
@@ -55,7 +55,7 @@ async function initMap(): Promise<void> {
55
// [START maps_place_autocomplete_map_listener]
56
// Add the gmp-placeselect listener, and display the results on the map.
57
//@ts-ignore
58
- placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => {
+ placeAutocomplete.addEventListener('gmp-placeselect', async ({ place }) => { // TODO: gmp-placeselect -> gmp-select; place -> placePrediction
59
await place.fetchFields({ fields: ['displayName', 'formattedAddress', 'location'] });
60
61
// If the place has a geometry, then present it on a map.
0 commit comments