AnimatedCluster icon indicating copy to clipboard operation
AnimatedCluster copied to clipboard

Ugly clusters renderyng after zoom and pan map

Open khavrenko opened this issue 12 years ago • 14 comments

It happens only after zoom out, after zoomIn and pan everything works perfect.

ugly_count

khavrenko avatar Feb 12 '13 13:02 khavrenko

Seems the animation on zoom out doesn't ended. Which browser do you use? Is this a repeatable problem or you have experienced only a couple of times?

acanimal avatar Feb 12 '13 16:02 acanimal

OS: Windows 7, browsers: Chrome(24.0.1312.57), Firefox(18.0.2), Opera (12.14). Unfortunately, it is repeatable problem

khavrenko avatar Feb 12 '13 20:02 khavrenko

Now, after 2aefdf13ab9625df23cc8ca52314743f58e467dd can see:

Dibujo

after zoom out + pan

jorix avatar Feb 22 '13 00:02 jorix

Thanks, I have detected the portion of code where bug resides. I'll try to fix ASAP.

acanimal avatar Feb 22 '13 06:02 acanimal

I have mode some modifications. I think the bug is fixed.

acanimal avatar Feb 22 '13 15:02 acanimal

@acanimal

The problem is not completely solved: try zoom in + pan (before animation ends)

jorix avatar Feb 22 '13 18:02 jorix

Hi Xavier, Could you check the sample http://acuriousanimal.com/code/animatedCluster/ (and refresh the browser) and let me know if the error persists?

In the second sample (with 50.000 features) I can zoom in/out while panning without problem. The performance isn't perfect neither the animation effect but the clusters seems to refresh correctly.

Thanks

acanimal avatar Feb 22 '13 19:02 acanimal

I have used a new clone of your repository, so is not a cache problem.

jorix avatar Feb 22 '13 19:02 jorix

after last update works well in Chrome

khavrenko avatar Feb 22 '13 19:02 khavrenko

Thanks khavrenko. Also works fine in FF (with realy worse performance)

acanimal avatar Feb 22 '13 19:02 acanimal

try zoom in + pan ( before animation ends )

And is browser independent, fails using FF Chrome or IE9:

Sin t tulo-1

jorix avatar Feb 22 '13 19:02 jorix

Hi,

First of all let me thank you for this nice piece of code. Well done! I use ist on http://newstral.com/de/maps with the current master version.

Unfortunately I frequently observe the bug that you guys describe above. In your demo you can reproduce the bug zooming in a cluster and then zooming out, followed by a half screen pan. For some reason it seems that the bounds of the area in which the features should get redrawn do not get updated correctly (or not on time). So this bug is not completely resolved yet.

And yes, the animation is slow in FF but that is a different story.

Best regards Wieland

wielinde avatar Mar 10 '13 08:03 wielinde

... could see the problem more easily if increaseses animationDuration, or use a slow pc like me.

jorix avatar Mar 10 '13 09:03 jorix

Thanks a lot to you both !!! Wieland nice to see a real project working with AnimatedCluster.

My problem is I have almost no free time to spent on my projects. Hope to have take enough free time this week to puts hands on.

Cheers.

acanimal avatar Mar 10 '13 11:03 acanimal