twotoasters / clusterkraf

A clustering library for the Google Maps Android API v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibility of multiple Clusterized Icons

peterszucs opened this issue · comments

Hi,
My question is about the possibility of multiple icons in clusters, based on data.
Example: I have POI -s on map, base on it's types it can have different types of icons. But I couldn't find out how to do that in ClusterKraf. As I know we can customise the icon in overrided "choose" function in extended MarkerOptionsChooser. But there I do not have which POI is under customisation. InputPoints can be only reached by index, cannot get the container array list itself, so if i iterate it with index (getInputPointAtOffset(index)) it can easily overrun. I have no other idea how to get current InputPoint, which can hold the type of the input point.
Thanks,
peter

well sorry, i found its size is public, so i can iterate through. but would be wise somehow get the current point.