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

L7 创建-销毁时序问题 #2173

Open
seanzb1985 opened this issue Dec 15, 2023 · 2 comments
Open

L7 创建-销毁时序问题 #2173

seanzb1985 opened this issue Dec 15, 2023 · 2 comments
Assignees
Labels
bug 这个是一个 bug 🌟 star

Comments

@seanzb1985
Copy link

问题描述

如果在调用L7 Scene 初始化后, Scene "onload" 之前,执行scene的destory(), scene 不能正常销毁,留下L7相关的dom 不能正常销毁。
image

重现链接

https://codesandbox.io/p/sandbox/eager-orla-rt8pym?file=%2Findex.ts%3A13%2C22

重现步骤

1.打开dom 链接。
2.查看地图没有被正常销毁。
表现为L7 和高德地图创建的dom在宿主dom 下没有正常移除掉。

预期行为

调用了scene的destory 操作以后,如果L7没有正常load, 不要不做后续的操作,保证L7 scene实例相关资源不遗留在宿主dom 上。

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]

屏幕截图或视频(可选)

遗留的L7创建的Dom
image

补充说明(可选)

No response

Copy link
Contributor

Hi @seanzb1985, Please star this repo if you find it useful! Thanks ⭐!
你好 @seanzb1985。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@lzxue
Copy link
Contributor

lzxue commented Dec 18, 2023

@heiyexing 可以看一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 这个是一个 bug 🌟 star
Projects
None yet
Development

No branches or pull requests

3 participants