I am trying to use two ClusterManager for Google Map , But I am able to add only one clustermanager and it's item click event,
googleMap.setOnMarkerClickListener(mClusterManager);
and
mClusterManager.setOnClusterItemClickListener(new OnClusterItemClickListener<Person>() {
@Override
public boolean onClusterItemClick(Person item) {
Log.v("Cluster Click", "Item Click:"+item.getName());
return true;
}
});
How can I add one more clustermanager to googlemap?
Thanks in advance.
you can use MarketManager like this:
yes, delegate the click listener through to both cluster managers.