Package 

Class NonHierarchicalViewBasedAlgorithm

    • Method Summary

      Modifier and Type Method Description
      void onCameraChange(CameraPosition cameraPosition)
      boolean shouldReclusterOnMapMovement()
      void updateViewSize(int width, int height) Update view width and height in case map size was changed.You need to recluster all the clusters, to update view state after view size changes.
      • Methods inherited from class com.google.maps.android.clustering.algo.NonHierarchicalDistanceBasedAlgorithm

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

        lock, unlock
      • Methods inherited from class com.google.maps.android.clustering.algo.ScreenBasedAlgorithm

        onCameraChange
      • Methods inherited from class java.lang.Object

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

      • NonHierarchicalViewBasedAlgorithm

        NonHierarchicalViewBasedAlgorithm(int screenWidth, int screenHeight)
        Parameters:
        screenWidth - map width in dp
        screenHeight - map height in dp
    • Method Detail

      • updateViewSize

         void updateViewSize(int width, int height)

        Update view width and height in case map size was changed.You need to recluster all the clusters, to update view state after view size changes.

        Parameters:
        width - map width in dp
        height - map height in dp