Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excluding some point #236

Open
ScreamZ opened this issue Apr 7, 2022 · 2 comments
Open

Excluding some point #236

ScreamZ opened this issue Apr 7, 2022 · 2 comments

Comments

@ScreamZ
Copy link

ScreamZ commented Apr 7, 2022

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 :)

@Showyilu
Copy link

@ScreamZ
Copy link
Author

ScreamZ commented Oct 25, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants