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

no GoogleMap API key #442

Closed
ElAnonimo opened this issue Feb 27, 2017 · 7 comments
Closed

no GoogleMap API key #442

ElAnonimo opened this issue Feb 27, 2017 · 7 comments

Comments

@ElAnonimo
Copy link

The console pops up a 'TypeError: this.props.googleMapElement is undefined' error. Where do I put the API key? Version 4.7.1.

@pkill37
Copy link

pkill37 commented Mar 18, 2017

I'm wondering the same

@oshalygin
Copy link
Collaborator

we definitely need to update the README with this, its fairly critical

@wtfiscrq
Copy link

Is there any solution or workaround at the moment? Thanks

@oshalygin
Copy link
Collaborator

oshalygin commented Apr 11, 2017

@joaocrq you either include it in your <head> like you normally do or you pass
googleMapURL={googleMapsUrl}

withScriptjs(withGoogleMap(props) => {
// your component.

Note passing it dynamically only works on an async load.

@wtfiscrq
Copy link

Thank you very much @oshalygin!

@oshalygin
Copy link
Collaborator

@joaocrq anytime, let me know if you need more of a code snippet, sorry my code is very nested and I'd have to show you 3 components deep but I dont mind, lmk.

@tomchentw
Copy link
Owner

Please refer to Getting Help section in the README (or #469).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants