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

enhancement: 图层添加hitDetect: boolean禁用或者开启鼠标检测 #1040

Closed
sakitam-fdd opened this issue Dec 3, 2019 · 2 comments
Closed

Comments

@sakitam-fdd
Copy link
Contributor

maptalks's version and what browser you use?

maptalks: 0.46.0
Chrome: 78.0.3904.108

Issue description

目前 map 有一个统一参数 hitDetect 统一管理 源码,但是没有针对单个图层的参数控制,是否可能在图层配置上增加一个hitDetect 去针对具体图层配置(优先级低于全局配置)。

Please provide a reproduction URL (on any jsfiddle like site)

@fuzhenn
Copy link
Member

fuzhenn commented Dec 4, 2019

有道理,可以在Layer类的options上增加一个默认的hitDetect参数,帮忙提个PR给我吧

@sakitam-fdd
Copy link
Contributor Author

@fuzhenn 好的😄

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