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

Excluding some point

Open ScreamZ opened this issue 2 years ago • 2 comments

Hello, Thanks for this library!

I'm rendering various points on my map for some points of interest but I'm also rendering the user location.

I don't want the user location point to be clustered nor counted in clusters… I would like to exclude it from clustering, how can I proceed?

Maybe we could expect a nonClusteredMarkers property?

Thanks :)

ScreamZ avatar Apr 07 '22 11:04 ScreamZ

https://github.com/venits/react-native-map-clustering/blob/master/lib/helpers.js#L10

Just add cluster={false}

Showyilu avatar Oct 25 '22 04:10 Showyilu

https://github.com/venits/react-native-map-clustering/blob/master/lib/helpers.js#L10

Just add cluster={false}

Was not documented, thanks.

I switched to https://github.com/JiriHoffmann/react-native-clusterer which is more performant and easier for this use case

ScreamZ avatar Oct 25 '22 09:10 ScreamZ