Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Update Instructions for Google Maps Autocomplete #30849

Merged
merged 3 commits into from
Feb 1, 2022

Conversation

kjschabra
Copy link
Contributor

@kjschabra kjschabra commented Jan 31, 2022

For autocomplete to work with Google Maps Javascript API, Google's Places API also needs to be enabled.

For autocomplete to work with Google Maps Javascript API, Google's Places API also needs to be enabled.

In addition you need to supply `libraries=places` as additional parameter to `loadScript` function.
```js
loadScript(
  'https://maps.googleapis.com/maps/api/js?key=API_KEY&libraries=places',
  document.querySelector('head'),
  'google-maps'
);
```
@danilo-leal danilo-leal changed the title Update Instructions for Google Maps Autocomplete [docs] Update Instructions for Google Maps Autocomplete Jan 31, 2022
@danilo-leal danilo-leal added the docs Improvements or additions to the documentation label Jan 31, 2022
Co-authored-by: danilo leal <[email protected]>
@mui-bot
Copy link

mui-bot commented Jan 31, 2022

No bundle size changes

Generated by 🚫 dangerJS against 2ce0c42

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! labels Jan 31, 2022
@oliviertassinari
Copy link
Member

oliviertassinari commented Jan 31, 2022

@oliviertassinari oliviertassinari merged commit 198db47 into mui:master Feb 1, 2022
@oliviertassinari
Copy link
Member

@kjschabra Thanks for raising the issue

wladimirguerra pushed a commit to wladimirguerra/material-ui that referenced this pull request Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: autocomplete This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants