Skip to content

遍历图层要素控制要素显示隐藏,当所有要素隐藏之后,缩放地图会报错 #76

Description

@Gaialong

代码:
...
clusterLayer.getGeometries((geometry) => {
geometrygeometry.isVisible() ? 'hide' : 'show';
});
...
报错信息:
Uncaught TypeError: Cannot read properties of undefined (reading 'getMin')

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