We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GridClusterer.java
1 parent 0df869e commit bc64e5aCopy full SHA for bc64e5a
1 file changed
src/main/java/boombimapi/domain/place/cluster/impl/GridClusterer.java
@@ -34,7 +34,14 @@ public List<ClusterResult> cluster(
34
final int baseCellPixel = properties.baseCellPixel();
35
final double tileSize = properties.tileSize();
36
final int maxZoomAtRefZ = properties.maxZoomAtRefZ();
37
- final int shift = Math.max(0, zoomLevel - maxZoomAtRefZ);
+ int shift;
38
+
39
+ if (properties.invertedZoom()) {
40
+ shift = Math.max(0, maxZoomAtRefZ - zoomLevel);
41
+ } else {
42
+ shift = Math.max(0, zoomLevel - maxZoomAtRefZ);
43
+ }
44
45
final int cellSizePixel = baseCellPixel << shift;
46
47
log.info(">>> GridClusterer cellSizePixel: {}", cellSizePixel);
0 commit comments