Skip to content

Conversation

@robyngit
Copy link
Member

This pull request improves the cleanup process when Cesium views & subviews are closed.

  • Add onClose method to CesiumWidgetView and MapWidgetContainerView
    • CesiumWidgetView.onClose removes navigation and mouse listeners
  • Call onClose on mapView from from CatalogSearchView
  • onClose methods in views recursively call onClose on any of the subviews contained within, following our general practice in MetacatUI

Fixes #2549

The onClose methods remove listeners from the Cesium viewer.

Fixes #2549
@robyngit robyngit changed the title Remove cesium listeners with map is removed from DOM Remove cesium listeners when map is removed from DOM Oct 15, 2024
@rushirajnenuji rushirajnenuji merged commit 2453bc2 into develop Dec 3, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cesium map listeners not removed when map is closed

3 participants