android-maps-utils icon indicating copy to clipboard operation
android-maps-utils copied to clipboard

Cluster Manager is Not Updating/Refreshing on Map

Open RajappaR opened this issue 10 years ago • 9 comments

I am trying to add some markers after changing camera position, that is working fine when i taken MapsActivity, But This is not working when i taken MapFragment under PagerView.

Can anyone Help here please...

Thank you

RajappaR avatar May 16 '16 11:05 RajappaR

@RajappaR have you got any solution over this

A86S avatar Jun 27 '16 09:06 A86S

@A86S Yeah I got the Solution and resolved it

RajappaR avatar Jul 01 '16 13:07 RajappaR

@RajappaR can you post the solution here? Thanks

stephenmcd avatar Jul 02 '16 04:07 stephenmcd

Before adding new markers, first Clear all the Markers in ClusterManager using "mClusterManager.clearItems()" and then add the new Markers....

RajappaR avatar Jul 05 '16 09:07 RajappaR

@RajappaR thanks :-)

stephenmcd avatar Jul 06 '16 00:07 stephenmcd

mClusterManager.cluster();

leonardovsilva avatar Feb 10 '17 14:02 leonardovsilva

calling clearItems and cluster don't make any difference on my side. Any other ideas?

albert0m avatar Jan 19 '18 15:01 albert0m

calling clearItems and cluster don't make any difference on my side. Any other ideas?

How did you solve it?

andres2093 avatar Jun 14 '19 14:06 andres2093

googleMap.setOnCameraIdleListener(mClusterManager);

You need to set Camera Idle Listener to your cluster manager instance if you want the markers to refresh automatically on zoom changes. That's how I solved this.

aliustaoglu avatar Aug 01 '19 08:08 aliustaoglu