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

LineLayer鼠标点击或者hover到线上,想出现该坐标点的附加信息 #2340

Open
zhangjuncheng1 opened this issue Mar 8, 2024 · 4 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@zhangjuncheng1
Copy link

问题描述

比如一条轨迹,我线hover到LineLayer上的某个点上,获取到该点的信息;我想获取数据里的属性,比如经过该点的时间这个属性,现在hover提供的event只能获取到该点的经纬度,以及整条轨迹的信息,但是两者没有关联关系;希望提供一种解决方案

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Copy link
Contributor

github-actions bot commented Mar 8, 2024

hi @zhangjuncheng1, welcome!

@github-actions github-actions bot added the good first issue Good for newcomers label Mar 8, 2024
@lzxue
Copy link
Contributor

lzxue commented Mar 8, 2024

目前没好方案,一个方案是,自己通过空间计算,查找到点击的点。
另外一个方法将线的顶点,用PointLayer绘制一下(推荐)

@zhangjuncheng1
Copy link
Author

非常感谢,第二种方案也考虑过,但是感觉轨迹点太多,怕绘制出现性能问题(我应该会使用这种方案);因为我想的是LineLayer也是通过坐标点绘制的,想看看antv-l7内部有没有关联映射的方案

@lzxue
Copy link
Contributor

lzxue commented Mar 8, 2024

非常感谢,第二种方案也考虑过,但是感觉轨迹点太多,怕绘制出现性能问题(我应该会使用这种方案);因为我想的是LineLayer也是通过坐标点绘制的,想看看antv-l7内部有没有关联映射的方案

还好,点的性能比线好多了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants