I am adding popups for some items on a map. I refresh the elements every 30 seconds.
Here is the problem:
-
I hover one element and leave the mouse right there until the refresh
-
when I move the mouse away, the popup content is still there (it disappears only on zoom in/out, or if i drag the map)
I tried removing the entire layer and adding it again, deleting all markers, but no change.
Are popups cached somehow?
Can this be a OpenLayers bug?
You may want in the refresh event handler to close yourself any popups.
There are accessible through
map.popupsand use something liketoggleordestroyorhide(depending on your needs) on each of them.