From a65411f9d60996bf75a1c2ec0df3854746e52024 Mon Sep 17 00:00:00 2001 From: Afzal Hossain Date: Thu, 30 Jul 2020 11:34:06 +0200 Subject: [PATCH] On resize it's getting undefined minZoom (#864) --- src/google_map.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/google_map.js b/src/google_map.js index 65b36d4..96d3cca 100644 --- a/src/google_map.js +++ b/src/google_map.js @@ -761,9 +761,7 @@ export default class GoogleMap extends Component { maps.event.addListener(map, 'idle', () => { if (this.resetSizeOnIdle_) { this._setViewSize(); - const currMinZoom = this._computeMinZoom( - this.props.options.minZoom - ); + const currMinZoom = this._computeMinZoom(options.minZoom); if (currMinZoom !== this.minZoom_) { this.minZoom_ = currMinZoom;