diff --git a/lib/ClusteredMapView.js b/lib/ClusteredMapView.js index 2f250e9..d27f288 100644 --- a/lib/ClusteredMapView.js +++ b/lib/ClusteredMapView.js @@ -125,7 +125,7 @@ const ClusteredMapView = forwardRef( }, [isSpiderfier, markers]); const _onRegionChangeComplete = (region) => { - if (superCluster) { + if (superCluster && region) { const bBox = calculateBBox(region); const zoom = returnMapZoom(region, bBox, minZoom); const markers = superCluster.getClusters(bBox, zoom);