Closed simonseyock closed 5 months ago
I think I am mistaken here, the overlay should get removed with the clear
call. My real problem is that handlePositionChanged
of the SynchronizedOverlay
is called after destruction. I assume that the handler does not get removed. I investigate.
The problem occurs because the listeners on the overlay collection are not removed. I adjust the PR
EDIT: This is not actually the cause of the problem. See below.
The overlays are not removed from the map. This should be done here I think: https://github.com/openlayers/ol-cesium/blob/bff7a2bb2efa32c0738fbf245666a82513b972fa/src/olcs/OverlaySynchronizer.ts#L100-L105