mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
On resize it's getting undefined minZoom (#864)
This commit is contained in:
parent
307476f02e
commit
a65411f9d6
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user