Class ContinuousZoomEuclideanCentroidAlgorithm

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Set<Cluster<T>> getClusters(Float zoom) Returns clusters of items for the given zoom level, with cluster positions set to the centroid of their constituent items rather than the position of any single item.
      • Methods inherited from class com.google.maps.android.clustering.algo.NonHierarchicalDistanceBasedAlgorithm

        addItem, addItems, clearItems, getItems, getMaxDistanceBetweenClusteredItems, removeItem, removeItems, setMaxDistanceBetweenClusteredItems, updateItem
      • Methods inherited from class com.google.maps.android.clustering.algo.AbstractAlgorithm

        lock, unlock
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContinuousZoomEuclideanCentroidAlgorithm

        ContinuousZoomEuclideanCentroidAlgorithm()
    • Method Detail

      • getClusters

         Set<Cluster<T>> getClusters(Float zoom)

        Returns clusters of items for the given zoom level, with cluster positions set to the centroid of their constituent items rather than the position of any single item.

        Parameters:
        zoom - the current zoom level
        Returns:

        a set of clusters with centroid positions