Map showing grey with simplest example and resizing does not fix the issue
See original GitHub issueI tried implementing the component with the simplest example
<GoogleMapReact bootstrapURLKeys={{ key: 'API_KEY' }} defaultCenter={this.state.center} defaultZoom={this.state.zoom} />
We are using server rendering. The script loads fine, at least there are no errors and everything else seems fine but the map tiles just won’t load; the whole map block is just grey. Any ideas why this is happening?
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
Google map comes partially, grey area comes instead of ...
Google map comes partially, grey area comes instead of images from google server · So what exactly are you doing to cause this...
Read more >Annotated List of Command-line Options - ImageMagick
Below is list of command-line options recognized by the ImageMagick command-line tools. If you want a description of a particular option, click on...
Read more >Customize How Your Map Looks - Tableau Help
This article describes how you can customize the appearance of a map view in Tableau. Note: Many of the tasks in this article...
Read more >Easy Checks – A First Review of Web Accessibility - W3C
These checks cover just a few accessibility issues and are designed to be ... Some sections of this page might not apply to...
Read more >Get Started | Maps Static API - Google Developers
center (required if markers not present) defines the center of the map, ... The Maps Static API is relatively easy to use, as...
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
Found the answer here: https://stackoverflow.com/questions/11749742/google-maps-api-v3-gray-box-no-map
Somehow my styles must overwrite the google maps ones, adding these here to the map resolved the issue:
this occurs because my map is in a tab which is not enabled by default (by default it’s wrapper has a zero height) . solved by creating map at opening time (custom code not using this lib).