Skip to content

Cannot read property 'fromLatLngToDivPixel' of undefined  #257

Closed
@Bronsequences

Description

@Bronsequences

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;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions