Skip to content

Commit

Permalink
feat(clusterbuster): Calculate cluster even on the max zoom level (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmin-petrescu committed Jun 19, 2020
1 parent 0629ecb commit 2f0d0d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export function createQueryForTile({
debug,
zoomToDistance,
}: IQueryInput) {
if (z < maxZoomLevel) {
if (z <= maxZoomLevel) {
// Clustered multi-zoom level case
let additionalLevels = '';
for (let i = maxZoomLevel - 1; i >= z; --i) {
Expand Down

0 comments on commit 2f0d0d9

Please sign in to comment.