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

vue里的内存泄漏 #4

Open
fuzhenn opened this issue Jun 12, 2019 · 0 comments
Open

vue里的内存泄漏 #4

fuzhenn opened this issue Jun 12, 2019 · 0 comments

Comments

@fuzhenn
Copy link
Member

fuzhenn commented Jun 12, 2019

from yumgis:

在vue中,如果按照以下方式添加图层,会有内存泄漏,即内存不正常的增长。

this.gridLayer = new maptalks.GridLayer('bdGridLayer', grid, options).addTo(mapObj);

但改成如下方式添加,就是正常的:

this.gridLayer = new maptalks.GridLayer('bdGridLayer', grid, options);
this.gridLayer.addTo(mapObj);
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

No branches or pull requests

1 participant