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

ThreeLayer 是否考虑开放事件监听 #170

Open
topcnm opened this issue Aug 16, 2024 · 0 comments
Open

ThreeLayer 是否考虑开放事件监听 #170

topcnm opened this issue Aug 16, 2024 · 0 comments

Comments

@topcnm
Copy link

topcnm commented Aug 16, 2024

从代码中看到,所有鼠标事件,都屏蔽了threelayer,后续是否考虑开放

{ key: "onClick", value: function(b) { for (var a = this.layers.length - 1; 0 <= a; a--) { var c = this.layers[a]; if (!0 === c._visible && "threeLayer" !== c.layerType && "ThreeLayer" !== c.layerType) { var d = c.map.getZoom() , h = c.getOptions().zoomThreshold; if ((!h || !(d <= h[0] || d >= h[1])) && c.options.enablePicked && c.options.onClick && c.pick && (d = c.pick(b.x, b.y, "onClick"), c.options.onClick(d, b), c.options.autoSelect && this.webglLayer.render(), !0 === b.cancelBubble)) break } } } }

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

1 participant