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 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.
Most helpful comment
mClusterManager.cluster();