Android-maps-utils: Cluster Manager is Not Updating/Refreshing on Map

Created on 16 May 2016  路  9Comments  路  Source: googlemaps/android-maps-utils

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

Most helpful comment

mClusterManager.cluster();

All 9 comments

@RajappaR have you got any solution over this

@A86S Yeah I got the Solution and resolved it

@RajappaR can you post the solution here? Thanks

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

@RajappaR thanks :-)

mClusterManager.cluster();

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

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

How did you solve it?

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lschlessinger1 picture lschlessinger1  路  6Comments

vardaan picture vardaan  路  6Comments

syedalibumpin picture syedalibumpin  路  5Comments

TatyanaRTB picture TatyanaRTB  路  3Comments

patriotaSJ picture patriotaSJ  路  7Comments