react-native-map-clustering icon indicating copy to clipboard operation
react-native-map-clustering copied to clipboard

Question: Any way to make custom cluster markers based on the markers that are clustered?

Open evanlarkin10 opened this issue 4 years ago • 4 comments

I am looking to have a different cluster color depending on attributes of the markers that are clustered together. Is it possible to obtain this data or maybe expose it to renderCluster() in the cluster parameter?

evanlarkin10 avatar Jan 18 '21 19:01 evanlarkin10

Same here... did you find a solution?

MaximoSucari avatar Jan 26 '21 21:01 MaximoSucari

No I haven't, yet. @MaximoSucari

evanlarkin10 avatar Jan 26 '21 21:01 evanlarkin10

You need to get data from superCluster.

https://github.com/venits/react-native-map-clustering/pull/152 https://github.com/mapbox/supercluster

dann1609 avatar Jan 28 '21 17:01 dann1609

My workaround in #181 might offer a possible way to do this depending on what exactly you need.

jimfoambox avatar Nov 03 '21 16:11 jimfoambox