Update Map.js

Fixing bug by using Math.max and not Math.min
This commit is contained in:
Ebrahem Farooqui
2021-08-18 16:06:55 -07:00
committed by GitHub
parent 1563e62311
commit 5518bcaee4

View File

@@ -276,7 +276,7 @@ class Map extends React.Component {
this.superclusterIndex.options.minZoom
);
const zoomLevelsToSkip = 2;
const zoomToFly = Math.min(
const zoomToFly = Math.max(
expansionZoom + zoomLevelsToSkip,
this.props.app.cluster.maxZoom
);