Skip to content

vue里的内存泄漏 #4

Description

@fuzhenn

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions