I am having an issue with this library. Whenever I clear the items from the cluster manager and add a new set, some single pins are not redrawn. Here's what I am doing:
private void displayMarkers(List
map.clear();
mClusterManager.clearItems();
mClusterManager.addItems(markersToShowOnMap);
mClusterManager.cluster();
}
If I call this method with the same set of markers, while zoomed in such that some clusters are displayed and some single markers are displayed, the single markers disappear! I am using the DefaultClusterRenderer. I have logged the renderer and onBeforeClusterItemRendered is not being called a second time after clearing and re-adding items. If i zoom out and back in, the missing markers re-appear.
I seem to have fixed this on my own. I removed the map.clear(); and all is well! It somehow interferes.