Minor changes to example config for feature flags

This commit is contained in:
efarooqui
2021-08-08 17:06:48 -07:00
parent ba4f5efdd2
commit 096cfaa073
3 changed files with 10 additions and 8 deletions

View File

@@ -276,7 +276,7 @@ class Map extends React.Component {
this.superclusterIndex.options.minZoom
);
const zoomLevelsToSkip = 2;
const zoomToFly = Math.max(
const zoomToFly = Math.min(
expansionZoom + zoomLevelsToSkip,
this.props.app.cluster.maxZoom
);
@@ -384,6 +384,7 @@ class Map extends React.Component {
individualClusters,
this.props.domain.locations
);
return (
<Events
svg={this.svgRef.current}