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

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

Open
zhuangxk opened this issue Apr 25, 2024 · 1 comment

Comments

@zhuangxk
Copy link

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

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

@liuhui1999
Copy link

请问你可以触发marker的点击事件嘛 ,运行环境是什么,我是vite+vue3 好像click无法触发

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

2 participants