Skip to content

Commit

Permalink
fix: condition do verify is find current cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
siimaoo committed Apr 10, 2023
1 parent 674e151 commit 13431fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-cluster-at-current-zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getClusterAtCurrentZoom(

const parentZoom = parent._zoom;

if (parentZoom >= currentZoom) {
if (parentZoom <= currentZoom) {
return parent; // parent is at the current zoom so it's the cluster we want
}

Expand Down

0 comments on commit 13431fc

Please sign in to comment.