AnimatedCluster icon indicating copy to clipboard operation
AnimatedCluster copied to clipboard

Reference from popup to feature gets lost when map pans

Open wielinde opened this issue 12 years ago • 2 comments

AnimatedCluster creates new features on the map each time the map moves. This leads to a problem when panning in the following scenario:

Let's say we use OpenLayers SelectControl for opening and closing popups. When a user clicks a cluster a popup opens. Sometimes, when the popup is very big, the map pans. Then a click on the X icon for closing the popup does not unselect the cluster the original cluster feature as it was already replaced by another.

This does not seem to happen if you use the normal cluster strategy with a threshold of 1. So I assume it hast to have something to do with the AnimatedCluster code.

This bug is not very urgent as I found a workaround by radically closing all popups when it seems appropriate. However, it would be nice if the select controls did still work.

wielinde avatar Mar 11 '13 11:03 wielinde

Hi @wielinde today I saw this note, strategies can not solve this problem, but...

I have worked on https://github.com/jorix/OL-FeaturePopups to abolish this problem. Now I checked it using AnimatedCluster and works well together, even zooming.

jorix avatar Apr 30 '13 21:04 jorix

Hi,

Thank you for the hint. I really appreciate it. I will take a look at it as soon as I hit this topic in one of the next sprints again.

Wieland

Am 30.04.2013 um 23:35 schrieb Xavier Mamano [email protected]:

Hi @wielinde today I saw this note, strategies can not solve this problem, but...

I have worked on https://github.com/jorix/OL-FeaturePopups to abolish this problem. Now I checked it using AnimatedCluster and works well together, even zooming.

— Reply to this email directly or view it on GitHub.

wielinde avatar May 01 '13 07:05 wielinde