question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bootstrapURLKeys dosent work

See original GitHub issue

bootstrapURLKeys dosen’t work when I using it with react 16

but when I add key in html it works:

<script src="//maps.googleapis.com/maps/api/js?key=MY_KEY" async="" defer="defer" type="text/javascript"></script>

… and why there is no information in doc that I need add it? That’s crucial information

            <GoogleMapReact
                bootstrapURLKeys={{
                    key: 'my key'
                }}
                defaultCenter={this.props.center}
                defaultZoom={this.props.zoom}
                height="200"
            >
                <Point lat={this.props.lat} lng={this.props.lng}  text={'Test'} />
            </GoogleMapReact>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
oskarleonardcommented, Sep 21, 2017

Had same problem and found: “Make sure the container element has width and height. The map will try to fill the parent container, but if the container has no size, the map will collapse to 0 width / height.” https://github.com/istarkov/google-map-react/blob/master/API.md

        <div style={{height: '500px', width: '500px'}}>
            <GoogleMapReact
                className="container karta"
                bootstrapURLKeys={{
                    key:'my keyI',
                    language: 'en',
                }}
                defaultCenter={{lat: 59.95, lng: 30.33}}
                defaultZoom={11}
            >
            </GoogleMapReact>
        </div> 
0reactions
lock[bot]commented, Dec 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

google map react bootstrapURLKeys not working #872 - GitHub
Describe the bug I've been trying to implement google-map-react to my project but for some reason I can't get it to work.
Read more >
google-map-react not showing up - Stack Overflow
Your code works when you amend this, check this working jsbin. ... lng: 30.33}} defaultZoom={11} bootstrapURLKeys={{key: 'YOUR_API_KEY'}} ...
Read more >
google-map-react - npm
My map doesn't appear! Make sure the container element has width and height. The map will try to fill the parent container, but...
Read more >
google-map-react | Yarn - Package Manager
It allows you to render any React component on the Google Map. It is fully isomorphic and can render on a server. Additionally,...
Read more >
google-map-react-kensodev - npm package - Snyk
google-map-react is a component written over a small set of the Google Maps API. It allows you to render any React component on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found