mapbox / supercluster

A very fast geospatial point clustering library for browsers and Node.
ISC License
2.11k stars 299 forks source link

Dynamic filtering of data without reinitializing cluster #238

Closed at-cf closed 1 year ago

at-cf commented 1 year ago

I'm clustering millions of rows and using the supercluster reduce function to aggregate stuff. My users want to be able to filter the data on the fly. Now I'm re-initing a whole new Supercluster on every filter change. It would be really cool if you could add a filter function as an argument to the getClusters call. If that's not possible, what's the correct approach for this use case?

grundmanise commented 10 months ago

Hi @at-cf, I have a similar use-case. What solution did you end up with?