Cannot read property 'fromLatLngToDivPixel' of undefined
See original GitHub issueIntermittently seeing Cannot read property 'fromLatLngToDivPixel' of undefined
errors in production. Unable to successfully reproduce this locally.
Stack trace from Raygun:
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:
- Created 7 years ago
- Reactions:2
- Comments:13 (3 by maintainers)
Top 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 >
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
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.
I’m also seeing this in production. Any plan to apply something like @mariusandra 's solution to master?