Closed
Description
Intermittently seeing Cannot read property 'fromLatLngToDivPixel' of undefined
errors in production. Unable to successfully reproduce this locally.
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;
}
Metadata
Metadata
Assignees
Labels
No labels