Skip to content

maxClusterZoom 设置1时 ,缩放后 markers的第一个元素不触发点击事件 #67

Description

@zhuangxk

问题:为了方便不使用聚合 maxClusterZoom 设置为 1;给每个marker 注册点击事件 ,发现缩放后总是第一个addTo的marker的click事件触发不了。(如果先点击第一个元素,再缩放,可以正常触发)。

我排查一阵没怎么看懂,但是在192行 if (maxClusterZoom && zoom > maxClusterZoom) 后加入代码 this._computeGrid(); 之后功能就正常了。不知道这个是什么原因?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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