Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove cesium listeners when map is removed from DOM #2550

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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
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
2 participants