ClusterManager<T extends ClusterItem> constructor

ClusterManager<T extends ClusterItem>(
  1. Iterable<T> _items,
  2. void updateMarkers(
    1. Set<Marker>
    ), {
  3. Future<Marker> markerBuilder(
    1. Cluster<T>
    )?,
  4. List<double> levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0],
  5. double extraPercent = 0.5,
  6. int maxItemsForMaxDistAlgo = 200,
  7. ClusterAlgorithm clusterAlgorithm = ClusterAlgorithm.GEOHASH,
  8. MaxDistParams? maxDistParams,
  9. double? stopClusteringZoom,
})

Implementation

ClusterManager(this._items, this.updateMarkers,
    {Future<Marker> Function(Cluster<T>)? markerBuilder,
    this.levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0],
    this.extraPercent = 0.5,
    this.maxItemsForMaxDistAlgo = 200,
    this.clusterAlgorithm = ClusterAlgorithm.GEOHASH,
    this.maxDistParams,
    this.stopClusteringZoom})
    : this.markerBuilder = markerBuilder ?? _basicMarkerBuilder,
      assert(levels.length <= precision);