-
Notifications
You must be signed in to change notification settings - Fork 635
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
使用MapTheme和LayerSwitch控件时事件穿透 #2600
Comments
hi @ljz779848255, welcome! |
升级到最新版本,该问题应该已经修复,参考 #2518 。如还有问题,复现在线示例。 |
非常感谢!我看了源码,发现MapTheme和LayerSwitch用的是popper,修复的是popup,我的demo地址: |
另外补充一下,我使用的已经是最新版本:2.22.1 |
最好复现一下最小示例代码,这里用的底图是高德,不太一样 |
谢谢!请移步这里->https://codesandbox.io/p/sandbox/l7-s5crt9 |
问题描述
我在地图上使用CityBuildingLayer,并对layer添加了点击事件,但使用MapTheme和LayerSwitch控件时,点击切换主题或图层事件穿透到map上的layer,触发layer的点击事件。
重现链接
No response
重现步骤
No response
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: