diff --git a/src/google_map.js b/src/google_map.js index 5775e71..60d8b0f 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -637,6 +637,8 @@ export default class GoogleMap extends Component { } _setViewSize = () => { + if (!this.mounted_) return; + const mapDom = ReactDOM.findDOMNode(this.refs.google_map_dom); this.geoService_.setViewSize(mapDom.clientWidth, mapDom.clientHeight); this._onBoundsChanged();