bpillon / google_maps_cluster_manager

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

isCluster: true or false #19

Closed mashegoindustries closed 3 years ago

mashegoindustries commented 3 years ago

Can you add some thing like isCluster: true or false.

Sometime I don't want certain map markers to cluster

Where by that particular marker wont ever cluster.

I have a situation were by a user current location is on the map, But soon as the user moves close enough to another marker, then that user marker will cluster.

Resulting in user not seeing their marker on the map anymore

bpillon commented 3 years ago

Hello.

May be you could just don't add the items you dont want to be clustered to ClusterManager and add them as markers on your own ?

mashegoindustries commented 3 years ago

I tried to exclude item from ClusterManager, I directly added it to the map as a marker,

But soon as I zoom out, the marker seems to disappear

bpillon commented 3 years ago

Indeed, because clustered markers are updated when you zoom out. So you have to add your non clustered markers each time clustered ones are updated.

mashegoindustries commented 3 years ago

Noted. Closing this one