PruneCluster icon indicating copy to clipboard operation
PruneCluster copied to clipboard

Improved clusters animations

Open pa-bouly opened this issue 10 years ago • 6 comments

Hi ! I'am trying to tune a bit your project to set an animation between each zoom event. (when a zoomIn, the old cluster go slowly to the new one .. ) But i'm getting some issues to do that :/ I don't understand how to save for example the old clusters, for after check if a new clusters is inside a old one. (i'm lost with the references between all objects ^^) Thank's in advance

pa-bouly avatar Feb 04 '15 13:02 pa-bouly

Hello,

Improving the animations is difficult in my opinion. I wanted to implement the same animation as you can have with Leaflet/Leaflet.markercluster, without success. I tried few ideas but no one was good. I came to the conclusion that the LeafletAdapter.ts must be rewritten, but I hadn't enough time for that.

If you have enough motivation, I suggest to start from scratch the ProcessView method, but then it's basically rewriting half of the library.

And I can understand that you can be lost with all the references. I wrote the algorithm and I'm often lost too :D

fungiboletus avatar Feb 04 '15 15:02 fungiboletus

Thank's for your quick answer !

I do the same animation when I zoomOut (just by checking the bounds box as I said), but when I zoomIn, it doesn't work :/ And my stuff is unstable & tricky. I think, even if i improve the animation, the process speed will be increased for thousand of markers.

I'm glad, i'm not alone to find this difficult :-p Unfortunately, I haven't the time to rewrite your method, but I'll keep you in touch if I'll do so ;-)

pa-bouly avatar Feb 04 '15 16:02 pa-bouly

Great. Let me know if you do something. Even if it's slow, it can be useful.

fungiboletus avatar Feb 04 '15 18:02 fungiboletus

Yes no worries ;)

pa-bouly avatar Feb 04 '15 20:02 pa-bouly

I'm also interested in getting the same kind of effect that Leaflet/Leaflet.markercluster has. It's actually the only thing that is currently preventing me to move over our project to your library.

Let us know when/if someone gets there :)

ghost avatar Mar 09 '15 13:03 ghost

Same here.

2015-03-09 14:54 GMT+01:00 Jonathan Senecal [email protected]:

I'm also interested in getting the same kind of effect that Leaflet/Leaflet.markercluster has. It's actually the only thing that is currently preventing me to move over our project to your library.

Let us know when/if someone gets there :)

— Reply to this email directly or view it on GitHub https://github.com/SINTEF-9012/PruneCluster/issues/47#issuecomment-77856882 .

musicformellons avatar Mar 09 '15 14:03 musicformellons