ClusterManager<T extends ClusterItem> class

Constructors

ClusterManager(Iterable<T> _items, void updateMarkers(Set<Marker>), {Future<Marker> markerBuilder(dynamic)?, List<double> levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0], double extraPercent = 0.5, int maxItemsForMaxDistAlgo = 200, ClusterAlgorithm clusterAlgorithm = ClusterAlgorithm.GEOHASH, MaxDistParams? maxDistParams, double? stopClusteringZoom})

Properties

clusterAlgorithm ClusterAlgorithm
final
extraPercent double
Extra percent of markers to be loaded (ex : 0.2 for 20%)
final
hashCode int
The hash code for this object.
no setterinherited
items Iterable<T>
List of items
no setter
levels List<double>
Zoom levels configuration
final
markerBuilder Future<Marker> Function(dynamic)
Method to build markers
final
maxDistParams MaxDistParams?
final
maxItemsForMaxDistAlgo int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopClusteringZoom double?
Zoom level to stop cluster rendering
final
updateMarkers → void Function(Set<Marker>)
Function to update Markers on Google Map
final

Methods

addItem(ClusterItem newItem) → void
Add on cluster item
getMarkers() Future<List>
Retrieve cluster markers
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCameraMove(CameraPosition position, {dynamic forceUpdate = false}) → void
Method called on camera move
setItems(List<T> newItems) → void
Update all cluster items
setMapId(int mapId, {bool withUpdate = true}) → void
Set Google Map Id for the cluster manager
toString() String
A string representation of this object.
inherited
updateMap() → void
Method called on map update to update cluster. Can also be manually called to force update.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

precision int
Precision of the geohash
final