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 not rendering

See original GitHub issue

I got following JSX:

<div>
  <GoogleMap
   center={{lat: 59.938043, lng: 30.337157}}
   zoom={9}>
  </GoogleMap>
</div>

I’ve imported the library this way:

import GoogleMap from 'google-map-react';

But I’m getting nothing rendered, what else should I setup?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
istarkovcommented, Jul 21, 2016

@vasco It’s opensource project you can document anything you need. BTW just read documentation carefully https://github.com/istarkov/google-map-react#my-map-doesnt-appear

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.
1reaction
vascocommented, Jul 22, 2016

@istarkov you’re absolutely right! Thank you once again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

map is not rendering the ui elements in reactjs - Stack Overflow
I've tried mapping through it, but it returns nothing with errors. Code: import React from 'react'; const Todo = React ...
Read more >
Map is not rendering properly - Google Groups
I am using leaflet map, when moving sidewards map is not rendering properly. Attaching the screenshot for the same. Any suggestions? Thanks.. Capture.PNG....
Read more >
tableau map is not rendering
Hi all,. I have an annoying issue with the Tableau Maps. I created several dashboards with Geolocation data. All worked well under Tableau...
Read more >
Maps not rendering : r/OsmAnd - Reddit
The OsmAnd Map Style does not render at all. I can only see my tracks. Some other map styles render but leave artifacts...
Read more >
Map not rendering on IOS · Issue #4441 · react-native ... - GitHub
Try and render view with Map on IOS device. Expected result. A map appears. Actual result. No map appears. React Native Maps Version....
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