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.

Cannot read property 'fromLatLngToDivPixel' of undefined

See original GitHub issue

Intermittently seeing Cannot read property 'fromLatLngToDivPixel' of undefined errors in production. Unable to successfully reproduce this locally.

Stack trace from Raygun: screen shot 2016-10-17 at 6 03 29 pm browsers affected

Implementation below: (using custom pointer component for styling only)

  renderMap() {
    const { location, googleMaps } = this.props;

    if (location.lat && location.lon) {
      return (
        <GoogleMap options={this.createMapOptions}
          defaultCenter={{lat: location.lat, lng: location.lon}}
          defaultZoom={16}
          bootstrapURLKeys={{key: googleMaps.apiKey, language: 'en'}}>
          <Pointer lat={location.lat} lng={location.lon} />
        </GoogleMap>
      );
    }

    return null;
  }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
Bronsequencescommented, Mar 2, 2018

Thanks @itsmichaeldiego for releasing a fix for this. I’m upgrading to the 0.32.0 package now and as it’s intermittent will report back as to whether it’s fixed. We’ve seen 88 instances of this error logged in Raygun over the last week so I should know in a day or so.

3reactions
nuclearspikecommented, Feb 17, 2018

I’m also seeing this in production. Any plan to apply something like @mariusandra 's solution to master?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shift center of google map (Error: Cannot read property ...
Uncaught TypeError: Cannot read property 'fromLatLngToContainerPixel' of undefined. As you can see at my Printscreen, the code is working ...
Read more >
Google Maps JavaScript API V3 Reference
Properties : AutomaticViewportMode , FleetEngineDeliveryFleetLocationProvider ... Methods: set · MapRestriction interface ... Properties: lat , lng.
Read more >
cannot read properties of undefined (reading 'dispose') google ...
Cannot read property of undefined (reading maps) ... mapStyles }} onChange={(e) => { setCoords({ lat: e.center.lat, lng: e.center.lng }); setBounds({ ne: e.
Read more >
GEE APP Error "Cannot read property 'apply' of undefined"
Your first problem (the one that's causing that specific error) is that mainProg is only being defined after it's been bound to the...
Read more >
tomchentw/react-google-maps - Gitter
Hi Guys, how can I set animation to a <Marker /> ? I want to set "BOUNCE" ... Cannot read property 'fromLatLngToDivPixel' of...
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