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

google is not defined #142

Closed
mychaelgo opened this issue Nov 9, 2015 · 2 comments
Closed

google is not defined #142

mychaelgo opened this issue Nov 9, 2015 · 2 comments

Comments

@mychaelgo
Copy link

this my code for render google map

 return (
            <div>
                Dashboard
                <GoogleMap
                    containerProps={{style: {height: "100%"}}}
                    ref="map"
                    defaultZoom={3}
                    defaultCenter={{lat: -25.363882, lng: 131.044922}}>

                </GoogleMap>
            </div>
        );

but i got error

Unhandled promise rejection ReferenceError: google is not defined(…)

did i missed something?

@a-type
Copy link

a-type commented Dec 1, 2015

For posterity: this problem is caused by not including the Google Maps JS script in your document.

@tomchentw
Copy link
Owner

Thanks @mychaelgo and @a-type. I've added a warning message in #168

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

3 participants