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

geo3D 实现的3d地图无法触发点击事件 #496

Open
manongqiyin opened this issue Jun 20, 2023 · 4 comments
Open

geo3D 实现的3d地图无法触发点击事件 #496

manongqiyin opened this issue Jun 20, 2023 · 4 comments

Comments

@manongqiyin
Copy link

在监听点击事件myChart.on('click', (params) => {
console.log("paramsparams", params);
that.$emit('pointClick', params)
})中
点击地图区域无法监听到点击事件,仅能监听到scatter3D的覆盖点。
如果使用myChart.getZr().on监听,能监听到点击区域的事件,但是回掉参数中没有区域的信息。
各位大佬是怎么解决的?

@AmyangXYZ
Copy link

把map从geo3D放到series里:type:"map3D"就行了

@Hanyace
Copy link

Hanyace commented Jul 5, 2023

为什么我用geo3D,连scatter3D都监听不了了 麻了

@H5-hub
Copy link

H5-hub commented Jul 13, 2023

你的echarts 版本和 GL版本是多少?我这边echarts5.0.2 GL2.0.4只能监听到 地图点击事件,监听不到scatter3D

@helgasoft
Copy link

Example code missing, cannot reproduce.
Both scatter3D and map3D click events work fine - Demo

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

5 participants