bootstrapURLKeys dosent work
See original GitHub issuebootstrapURLKeys 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:
- Created 6 years ago
- Reactions:2
- Comments:7 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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.