NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
42 stars 28 forks source link

Cesium map listeners not removed when map is closed #2549

Open robyngit opened 1 month ago

robyngit commented 1 month ago

When navigating away from the Cesium map in the data catalog view, the mouse listeners are sometimes still active, as can be seen from a number of errors in the dev console:

image

The above error is repeated continuously after navigating from the data catalog to a dataset landing page

I can reproduce this in Firefox but not Chrome. Either way, these listeners should be removed when the map is removed from the DOM.