bpillon / google_maps_cluster_manager

Simple Flutter clustering library for Google Maps
https://pub.dev/packages/google_maps_cluster_manager
MIT License
121 stars 94 forks source link

items should not be clustered when max zoom is achieved #45

Closed cedvdb closed 2 years ago

cedvdb commented 2 years ago

If two points are really close together those will be clustered automatically. It makes it impossible to click on a specific cluster item even when zooming to max.

image

eajazi commented 2 years ago

I manage to solve this by setting up stopClusteringZoom: 21 in clusterManager options

ClusterManager ClusterManager( Iterable _items, void Function(Set ) updateMarkers, { Future Function(Cluster )? markerBuilder, List levels = const [1, 4.25, 6.75, 8.25, 11.5, 14.5, 16.0, 16.5, 20.0], double extraPercent = 0.5, **double? stopClusteringZoom**, })