ClusterManagerDelegate
public protocol ClusterManagerDelegate : AnyObject
Undocumented
-
cellSize(for:)
Default implementationThe size of each cell on the grid (The larger the size, the better the performance) at a given zoom level.
Default Implementation
Declaration
Swift
func cellSize(for zoomLevel: Double) -> Double?
Parameters
zoomLevel
The zoom level of the visible map region.
Return Value
The cell size at the given zoom level. If you return nil, the cell size will automatically adjust to the zoom level.
-
shouldClusterAnnotation(_:)
Default implementationWhether to cluster the given annotation.
Default Implementation
Declaration
Swift
func shouldClusterAnnotation(_ annotation: MKAnnotation) -> Bool
Parameters
annotation
An annotation object. The object must conform to the MKAnnotation protocol.
Return Value
true
to clusterize the given annotation.