ScreenBasedAlgorithm

This abstract interface provides two methods: one to determine if the map should recluster when the map moves (shouldReclusterOnMapMovement), and another method to determine the behavior when the camera moves (onCameraChange ()})

Parameters

<T>

The ClusterItem type

Inheritors

Functions

Link copied to clipboard
abstract fun addItem(item: T): Boolean
Adds an item to the algorithm
Link copied to clipboard
abstract fun addItems(items: Collection<T>): Boolean
Adds a collection of items to the algorithm
Link copied to clipboard
abstract fun clearItems()
Link copied to clipboard
abstract fun getClusters(zoom: Float): Set<out Cluster<T>>
Link copied to clipboard
abstract fun getItems(): Collection<T>
Link copied to clipboard
abstract fun lock()
Link copied to clipboard
abstract fun onCameraChange(position: CameraPosition)
Link copied to clipboard
abstract fun removeItem(item: T): Boolean
Removes an item from the algorithm
Link copied to clipboard
abstract fun removeItems(items: Collection<T>): Boolean
Removes a collection of items from the algorithm
Link copied to clipboard
abstract fun setMaxDistanceBetweenClusteredItems(maxDistance: Int)
Link copied to clipboard
Link copied to clipboard
abstract fun unlock()
Link copied to clipboard
abstract fun updateItem(item: T): Boolean
Updates the provided item in the algorithm