SINTEF-9012 / PruneCluster

Fast and realtime marker clustering for Leaflet
MIT License
551 stars 131 forks source link

Cluster by category #136

Closed zzzFelix closed 7 years ago

zzzFelix commented 7 years ago

Is it possible to group clusters by category so that all markers in a cluster are of the same category? The color coding indicating which categories are represented in a cluster is neat but does not serve my purpose.

fungiboletus commented 7 years ago

Yes, you can use a separate PruneCluster layer for each category. You probably need to personalize the cluster icons to distinguish the categories too.

zzzFelix commented 7 years ago

I feel foolish that I didn't think of that. I already was fumbling with the source code. Thank you!

fungiboletus commented 7 years ago

Ahah, no problem. It could be a nice feature to have by the way :-)