ClusterManager<T extends ClusterItem> class
Constructors
-
ClusterManager.new(Iterable<T> _items, void updateMarkers(Set<Marker>), {Future<Marker> markerBuilder(Cluster<T>)?, List<double> levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0], int maxItemsForMaxDistAlgo = 200, ClusterAlgorithm clusterAlgorithm = ClusterAlgorithm.GEOHASH, MaxDistParams? maxDistParams, double? stopClusteringZoom})
-
Methods
-
addItem(ClusterItem newItem)
→ void
-
Add on cluster item
-
getMarkers()
→ Future<List<Cluster<T>>>
-
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.
Static Properties
-
precision
→ int
-
Precision of the geohash
final