-
Notifications
You must be signed in to change notification settings - Fork 93
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
view.destroy is not a function #379
Comments
That is because the error is this :
so must be a typo somewhere in the code |
Also seeing this issue, wanted to provide more information.
I'm assuming the viewer.destroy function is called as a part of the NgDestroy. But looking into the viewer object, it doesn't grab any of the prototype functions from cesium.Viewer, which includes the .destroy function. I'm using v0.0.67 with Angular v11.2.12. |
I encountered a similar crash. After upgrading to the latest version (0.0.71) it was fixed. |
Can confirm this fixed it for me as well |
Intended outcome:
routing away from a component with does not cause viewer.destroy() in AcMapComponent to throw and error
Actual outcome:
routing away from a component with does not cause viewer.destroy() in AcMapComponent to not throw and error
How to reproduce the issue:
using angular router, route to another component what doesn't have
Version
The text was updated successfully, but these errors were encountered: