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.

Map showing grey with simplest example and resizing does not fix the issue

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bknifflercommented, Jun 28, 2017

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:

#map * {
    overflow:visible;
}
2reactions
bardiarastincommented, Jun 18, 2017

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).

Read more comments on GitHub >

github_iconTop 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 >

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