Closed giovanni-bertoncelli closed 10 months ago
is there any suggestion? this is useful for some fleet management system
@Steve7394 I've been waiting for 5 months for some kind of reply... 😞
Sorry for the late reply.
Supercluster
instance or use load
— in both cases, the amount of work will be the same. points
array if you wish, modifying it and the reloading/recreating the index. I don't know whether there's any opportunity for caching beyond that.Supercluster in general isn't very well suited to dynamic cases. It was designed from the ground up for static cases. It may work well in specific cases still, but I don't think any improvements can be made for that category of cases.
Ok thank you @mourner . Any suggestion for some library more suited for this use case?
I came across this question after finding we had a memory leak in our application due to calling load
repeatedly on a single Supercluster instance.
This leak went away when we recreated a new Supercluster
each time prior to calling load
. Using v8.0.1.
Have not had a chance to dig into this further.
Hi, first of all thank you for the great job, supercluster is a very useful and well crafted library! I use supercluster with a dynamic set of Points, there are two different cases in which the set of Points may change and re-trigger a clustering:
I was wondering which is the right way to use supercluster in this case:
load
each time I have to trigger the clustering (though I'm not sure this does not causes memory leaks)I'm also using the "fly to cluster" feature. Since it may happen that during a clustering operation and before the clustering is complete a user may fly to a cluster how can I be sure that the cluster exists before all the clusters change and there is no way to find the zoom level required?
Another question: if I re-use the same index is there any way to cache points between two
load
calls?