antvis / antvis/L7Plot

🐛 [BUG] windows 兼容问题

Open
#364 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
91
Forks
21
PR merge metrics
No merged PRs in 30d

Description

"@antv/l7": "^2.22.5",
"@antv/l7plot": "^0.5.11"

版本都是最新版本,在部分 windows 设备下有两个问题,mac 端都正常。

问题1: hover 时图表会变黑,测试发现把 tooltip 属性去除就正常了;

![Image](https://github.com/user-attachments/assets/648a51f7-fa1c-4d3f-9529-9a0746e2abee)

问题2: fillAreaLayer:click 获取的 feature 属性是 null。

![Image](https://github.com/user-attachments/assets/c05ac1ea-78a3-4278-962b-665d3d12efcf)

测试了两位同事的 windows 11 专业版,同样 chrome 都是最新版本,一个没问题一个有问题。

---------------------------------------

发现官网的案例代码版本稍微低一点
"@antv/l7": "2.21.0",
"@antv/l7plot": "0.5.9",

我这边降低版本后发现问题1没有了,问题2 feature 也有值,但是 fillAreaLayer:click 太难触发了(mac下也是这样),图表点击好半天才触发一个事件回调。
另外也 chart.addLayer(new DotLayer) 也没有效果了。

问题比较多,帮忙看看跟进下。

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported behavior on Windows 11 with Chrome using @antv/l7 2.22.5 and @antv/l7plot 0.5.11, then compare with 2.21.0 and 0.5.9. Done means hover no longer makes the chart black, fillAreaLayer:click provides feature data reliably, and chart.addLayer(new DotLayer) works as reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.