react-native-maps-super-cluster icon indicating copy to clipboard operation
react-native-maps-super-cluster copied to clipboard

Flickering clusters

Open lpetka opened this issue 5 years ago • 1 comments

I wrote a method that preserves same cluster key across region changes, i.e. SuperCluster engine computes clusters every time region changes and rerenders all clusters even though some of them did not change at all (same coordinates, same point count). Rerendering is triggered by generating new cluster_id which is then passed to cluster component key.

lpetka avatar Mar 14 '19 11:03 lpetka

@lpetka thanks, this is a good point. Tough we need to make sure the changes are scalable enough to support a huge number of clusters (like it the module supports today).

39otrebla avatar Aug 09 '19 21:08 39otrebla