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 showing up

See original GitHub issue

I actually followed steps in the document and got a new API key but map is still not showing up.

const AnyReactComponent = ({ text }) =>   <div style={{
    position: 'relative', color: 'white', background: 'red',
    height: 40, width: 60, top: -20, left: -30,
  }}>{text}</div>;
const Engagement = () => (
  <div className="box box-default">
    <div className="box-body">
      <div className="row">
        <GoogleMapReact defaultCenter={{lat: 59.95, lng: 30.33}} defaultZoom={11}>
        <AnyReactComponent
          lat={59.955413}
          lng={30.337844}
          text={'Kreyser Avrora'}
        />
      </GoogleMapReact>
      </div>
    </div>
  </div>
);

const Home = () => (

  <div className="container-fluid no-breadcrumbs page-dashboard">

    <QueueAnim type="bottom" className="ui-animate">
      <div key="2"><StatBoxes /></div>
      <Main />
      <div key="3"><Engagement /></div>
    </QueueAnim>

  </div>
);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
burakuluucommented, Jul 10, 2017

@istarkov

const Engagement = () => (
  <div className="box box-default" style={{height: '948px, width: '1000px''}}>
    <div className="box-body">
      <div className="row">
        <GoogleMapReact bootstrapURLKeys={{key: 'AIzaSyBDDPW76s2PDSCZ49AeCenVyoVKfGY9TcM'}} defaultCenter={{lat: 59.95, lng: 30.33}} defaultZoom={11}>
        <AnyReactComponent
          lat={59.955413}
          lng={30.337844}
          text={'Kreyser Avrora'}
        />
      </GoogleMapReact>
      </div>
    </div>
  </div>
);

I gave the height & width but it still doesn’t appear. Did I miss something other than giving height & width attribute?

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

Fix Google Maps Not Showing Map - Technipages
If Google Maps fails to load the map and the streets are not showing, this guide will show you how to fix the...
Read more >
Google Maps not showing route: Learn how to solve this issue ...
Google Maps not showing route · Location Accuracy · Uninstall and reinstall · Recalibrating the compass · Clear Cache and Internet Connectivity.
Read more >
Why Is My Google Maps App Not Working? 4 Ways to Fix It
Why your Google Maps isn't working, and how to fix it · Update your Google Maps app · Check your Wi-Fi or cellular...
Read more >
If Maps isn't working on your Apple device
Turn on Location Services and Location Access for Maps. In the Settings app, tap Privacy, then tap Location Services.
Read more >
How to fix Maps when it crashes - Android - Google Maps Help
On your Android phone or tablet, open the Settings app . · Tap Apps & notifications. · Follow the steps on your device...
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