Skip to content

Commit d9cc5d4

Browse files
committed
feat: added ContinuousZoomEuclideanAlgorithm
1 parent 375ce19 commit d9cc5d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/src/main/java/com/google/maps/android/clustering/algo/NonHierarchicalDistanceBasedAlgorithm.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import com.google.maps.android.projection.SphericalMercatorProjection;
2525
import com.google.maps.android.quadtree.PointQuadTree;
2626

27+
import java.util.ArrayList;
2728
import java.util.Collection;
2829
import java.util.Collections;
2930
import java.util.HashMap;
@@ -58,7 +59,7 @@ public class NonHierarchicalDistanceBasedAlgorithm<T extends ClusterItem> extend
5859
/**
5960
* Any modifications should be synchronized on mQuadTree.
6061
*/
61-
private final PointQuadTree<QuadItem<T>> mQuadTree = new PointQuadTree<>(0, 1, 0, 1);
62+
protected final PointQuadTree<QuadItem<T>> mQuadTree = new PointQuadTree<>(0, 1, 0, 1);
6263

6364
private static final SphericalMercatorProjection PROJECTION = new SphericalMercatorProjection(1);
6465

@@ -260,7 +261,7 @@ private Bounds createBoundsFromSpan(Point p, double span) {
260261
}
261262

262263
protected static class QuadItem<T extends ClusterItem> implements PointQuadTree.Item, Cluster<T> {
263-
private final T mClusterItem;
264+
protected final T mClusterItem;
264265
private final Point mPoint;
265266
private final LatLng mPosition;
266267
private Set<T> singletonSet;

0 commit comments

Comments
 (0)