Skip to content

vue里的内存泄漏 #4

@fuzhenn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions