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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -