android - add multiple ClusterManager to Google map -
i trying use 2 clustermanager google map , able add 1 clustermanager , 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 add 1 more clustermanager googlemap?
thanks in advance.
yes, delegate click listener through both cluster managers.
map.setonclicklistener(new googlemap.onmarkerclicklistener() { boolean onmarkerclick(marker m) { clustermanager1.onmarkerclick(m) clustermanager2.onmarkerclick(m) } });
Comments
Post a Comment