We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example if I have user avatar on map, I don't need it to cluster, how do I do that?
The text was updated successfully, but these errors were encountered:
What you can do is to have 2 different sets. One for clustering items and another one for non clustering items, like this:
final Set<Marker> _nonClusteringMarkers = {}; final Set<Marker> _clusteringMarkers = {}; GoogleMap( markers: {..._nonClusteringMarkers, ..._clusteringMarkers}, );
Create two classes like:
class Place { ... }
class ClusterPlace extends Place with ClusterItem { ... }
The Place one you use for the non clustering markers and the ClusterPlace you use for the clustering markers.
Place
ClusterPlace
At the ClusterManager you can do something like this:
ClusterManager
ClusterManager _initClusterManager() { return ClusterManager<ClusterPlace>( _items, _updateClusteringMarkers, markerBuilder: _markerClusterBuilder, ); }
Sorry, something went wrong.
No branches or pull requests
For example if I have user avatar on map, I don't need it to cluster, how do I do that?
The text was updated successfully, but these errors were encountered: