Skip to content

Commit be86158

Browse files
lzxueclaude
andauthored
fix: text stroke with 0 opacity makes text appear black (Issue #2522) (#2837)
* fix: setBgColor not applying background color to map container Fixes #2549 The setBgColor method was only setting this.bgColor property without actually updating the map container's background color. Now it also sets the CSS background-color style on the container element. Co-Authored-By: Claude <noreply@anthropic.com> * fix: text stroke with 0 opacity makes text appear black Fixes #2522 The fragment shader was mixing stroke color without considering its alpha value. When stroke opacity was 0, the mix() function would still blend the stroke color (black by default) with the text color, making the text appear black around the edges. Now the mix factor is multiplied by stroke alpha, so when stroke is fully transparent (alpha=0), no stroke color is blended into the output. Co-Authored-By: Claude <noreply@anthropic.com> * chore: release v2.25.3 * fix(scale): return range midpoint when domain min equals max When all data values are identical (e.g., all values are 1), .domain([1, 1]).range([0, 1]) would return 0 for all values, making heatmap invisible. Now returns the range midpoint instead. Affected scales: - scaleLinear: return (r0 + r1) / 2 - scalePow: return (r0 + r1) / 2 - scaleLog: return (r0 + r1) / 2 - scaleQuantize: return _range[Math.floor(_range.length / 2)] - scaleTime: return (r0 + r1) / 2 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: release v2.25.4 * chore: remove extra blank line in map.ts * docs: format code in tianditu map tutorial --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent bd8cf93 commit be86158

34 files changed

Lines changed: 1658 additions & 46 deletions

.claude/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
"Bash(ls:*)",
2424
"Bash(cat:*)",
2525
"Bash(NODE_ENV=production pnpm:*)",
26-
"Read(//tmp/**)"
26+
"Read(//tmp/**)",
27+
"Edit(~/.claude/skills/vision-story/**)",
28+
"Bash(node ~/.claude/skills/release-l7/index.ts release 2.25.3)",
29+
"WebFetch(domain:github.com)",
30+
"Bash(.changeset/scale-fix.md:*)"
2731
]
2832
}
2933
}

L7_Open_Issues_分析报告.md

Lines changed: 288 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,288 @@
1+
# L7 Open Issues 分析报告
2+
3+
生成时间: 2026-03-17 16:27:17
4+
5+
## 统计概览
6+
7+
- **总 Open Issues 数**: 100
8+
9+
### 按类别分布
10+
11+
| 类别 | 数量 |
12+
| --------------- | ---- |
13+
| Bug | 7 |
14+
| Feature Request | 1 |
15+
| Question | 1 |
16+
| Documentation | 0 |
17+
| Help Wanted | 2 |
18+
| PR | 2 |
19+
| Other | 87 |
20+
| **建议关闭** | 7 |
21+
22+
## 详细分析
23+
24+
### BUG (7 个)
25+
26+
- **#2606** [2024-08-30] @guzicheng90
27+
- 标题: PolygonLayer mousemove 闪烁 变黑
28+
- 标签: bug
29+
30+
- **#2605** [2024-08-30] @soulmate126
31+
- 标题: 使用GoogleMap 作为底图,Marker和Popup绘制报错
32+
- 标签: bug
33+
34+
- **#2600** [2024-08-28] @ljz779848255
35+
- 标题: 使用MapTheme和LayerSwitch控件时事件穿透
36+
- 标签: bug
37+
38+
- **#2595** [2024-08-20] @qrh919
39+
- 标题: 地图标注物拖拽会变黑
40+
- 标签: bug
41+
42+
- **#2583** [2024-08-05] @wo-de-ping-er
43+
- 标题: 蜂窝热力绘制大小,与所设置的值不符?
44+
- 标签: bug
45+
46+
- **#2569** [2024-07-18] @luojunbang
47+
- 标题: [LineLayer][greatcircle]当两个点距离太近的时候,会出现折线
48+
- 标签: bug, help wanted
49+
50+
- **#2555** [2024-06-27] @seanzb
51+
- 标题: Bubble 图层Style 中 stroke 属性设置成一个透明度为0的rgba颜色时,所有的bubble 会被画成黑色
52+
- 标签: bug, help wanted
53+
54+
### FEATURE (1 个)
55+
56+
- **#2558** [2024-06-29] @Cannylcn
57+
- 标题: 官方示例3D地图没有内外发光
58+
- 标签: help wanted, feature request
59+
60+
### QUESTION (1 个)
61+
62+
- **#2575** [2024-07-23] @gx304419380
63+
- 标题: 2.22.0版本的高德地图与自建的图层存在偏差
64+
- 标签: question
65+
66+
### HELP_WANTED (2 个)
67+
68+
- **#2570** [2024-07-18] @luojunbang
69+
- 标题: [LineLayer][texture]-当 zoom 放大到 12+ 时候,lineLayer.shape('arc')的路径贴图会消失和渲染不完全
70+
- 标签: help wanted
71+
72+
- **#2567** [2024-07-11] @gongzemin
73+
- 标题: 腾讯地图scene.on('mouseover')事件不会触发
74+
- 标签: help wanted
75+
76+
### PR (2 个)
77+
78+
- **#2817** [2026-02-25] @Copilot
79+
- 标题: fix: correct coordinate rendering offset at maximum zoom via fp64 viewport cente
80+
- 标签: pr(bugfix)
81+
82+
- **#2796** [2025-12-21] @wujighostking
83+
- 标题: docs: remove the redundant semicolons
84+
- 标签: pr(documentation)
85+
86+
### OTHER (87 个)
87+
88+
- **#2810** [2026-01-31] @LiuJianhuo
89+
- 标题: drawPolygon绘制,光标位置和渲染的点位置偏移严重,
90+
- 标签: 无标签
91+
92+
- **#2794** [2025-12-05] @hxyAhut
93+
- 标题: drawPolygon绘制组件在图片上的绘制问题
94+
- 标签: 无标签
95+
96+
- **#2793** [2025-12-03] @Nickersbb
97+
- 标题: 图表演示里的圆形扫光城市案例,效果丢失
98+
- 标签: fixed
99+
100+
- **#2792** [2025-11-25] @lzxue
101+
- 标题: Feat arrow line
102+
- 标签: 无标签
103+
104+
- **#2753** [2025-08-22] @yby233
105+
- 标题: GeoJSON-Vt显示异常
106+
- 标签: 无标签
107+
108+
- **#2752** [2025-08-19] @liwensai
109+
- 标题: 官方给的图表演示-栅格图层-Raster image,当放大到一定程度时候,图会向下移动。
110+
- 标签: 无标签
111+
112+
- **#2751** [2025-08-19] @jony666666
113+
- 标题: TencentMap 今天开始突然无法自动响应 resize 事件
114+
- 标签: 无标签
115+
116+
- **#2748** [2025-08-04] @cshmei
117+
- 标题: 图层click事件获取不到数据?
118+
- 标签: 无标签
119+
120+
- **#2745** [2025-07-19] @WoodMind
121+
- 标题: 第三方地图资源配置:使用高德/百度地图(非公网地图资源)
122+
- 标签: 无标签
123+
124+
- **#2733** [2025-07-04] @xunzhaoliuxingluo
125+
- 标题: 栅格图层Raster Data在某些位置放大到一定级别会出现错位问题
126+
- 标签: 无标签
127+
128+
## 建议关闭的 Issue (7 个)
129+
130+
### #2697: cylinder 在 mapbox 高度错误且 heightfixed 失效
131+
132+
- **原因**: 标题表明已解决,建议关闭
133+
- **作者**: @KINGZSY
134+
- **创建日期**: 2025-04-17
135+
- **标签**: 无
136+
137+
**内容摘要**:
138+
139+
```
140+
### 问题描述
141+
142+
cylinder 在 mapbox 高度错误且 heightfixed 失效
143+
144+
### 重现链接
145+
146+
_No response_
147+
148+
### 重现步骤
149+
150+
_No response_
151+
152+
### 预期行为
153+
154+
_No response_
155+
156+
### 平台
157+
158+
- 操作系统: [macOS, Windows, Linux, React Native ...]
159+
- 网页浏览器: [Google ...
160+
```
161+
162+
### #2575: 2.22.0版本的高德地图与自建的图层存在偏差
163+
164+
- **原因**: 过时的问题,建议关闭
165+
- **作者**: @gx304419380
166+
- **创建日期**: 2024-07-23
167+
- **标签**: question
168+
169+
**内容摘要**:
170+
171+
```
172+
### 问题描述
173+
174+
新版本的高德地图与自建的图层存在偏差:
175+
![image](https://github.com/user-attachments/assets/023934d8-1b16-480a-a1b2-ac5772a9d663)
176+
老版本没有这个问题
177+
178+
### 重现链接
179+
180+
_No response_
181+
182+
### 重现步骤
183+
184+
_No response_
185+
186+
### 预期行为
187+
188+
_No res...
189+
```
190+
191+
### #2570: [LineLayer][texture]-当 zoom 放大到 12+ 时候,lineLayer.shape('arc'
192+
193+
- **原因**: 过时的帮助请求,建议关闭
194+
- **作者**: @luojunbang
195+
- **创建日期**: 2024-07-18
196+
- **标签**: help wanted
197+
198+
**内容摘要**:
199+
200+
```
201+
### 问题描述
202+
203+
[例子1](https://l7.antv.antgroup.com/examples/gallery/animate/#animate_path_texture)
204+
205+
当 shape 修改为 arc 时候,动画消失
206+
207+
[例子2](https://l7.antv.antgroup.com/zh/examples/line/animate/#plane_animate2)
208+
...
209+
```
210+
211+
### #2569: [LineLayer][greatcircle]当两个点距离太近的时候,会出现折线
212+
213+
- **原因**: 过时的帮助请求,建议关闭
214+
- **作者**: @luojunbang
215+
- **创建日期**: 2024-07-18
216+
- **标签**: bug, help wanted
217+
218+
**内容摘要**:
219+
220+
````
221+
### 问题描述
222+
223+
```import { LineLayer, Scene } from '@antv/l7';
224+
import { GaodeMap } from '@antv/l7-maps';
225+
226+
const scene = new Scene({
227+
id: 'map',
228+
map: new GaodeMap({
229+
style: 'dark',
230+
center: ...
231+
````
232+
233+
### #2567: 腾讯地图scene.on('mouseover')事件不会触发
234+
235+
- **原因**: 过时的帮助请求,建议关闭
236+
- **作者**: @gongzemin
237+
- **创建日期**: 2024-07-11
238+
- **标签**: help wanted
239+
240+
**内容摘要**:
241+
242+
```
243+
### 问题描述
244+
245+
腾讯地图scene.on('mouseover')事件不会触发,高德地图可以。packages/maps/src/tmap/map.ts, this.map.on(eventName, handleProxy); this.map执行到这里为undefined.
246+
<img width="893" alt="image" src="https://github.com/a...
247+
```
248+
249+
### #2558: 官方示例3D地图没有内外发光
250+
251+
- **原因**: 过时的帮助请求,建议关闭
252+
- **作者**: @Cannylcn
253+
- **创建日期**: 2024-06-29
254+
- **标签**: help wanted, feature request
255+
256+
**内容摘要**:
257+
258+
```
259+
### 问题描述
260+
261+
<img width="1187" alt="WechatIMG217" src="https://github.com/antvis/L7/assets/29397178/1ece884f-ff83-4012-a2a8-5131ea46ad4f">
262+
在官网的示例中看到添加了atomLayer和bloomLayer,但是也没看到发光效果
263+
264+
### 重现链接
265+
266+
_No resp...
267+
```
268+
269+
### #2555: Bubble 图层Style 中 stroke 属性设置成一个透明度为0的rgba颜色时,所有的bubble 会被画成黑
270+
271+
- **原因**: 过时的帮助请求,建议关闭
272+
- **作者**: @seanzb
273+
- **创建日期**: 2024-06-27
274+
- **标签**: bug, help wanted
275+
276+
**内容摘要**:
277+
278+
```
279+
### 问题描述
280+
281+
Bubble 图层Style 中 stroke 属性设置成一个透明度为0的rgba颜色时,所有的bubble 会被画成黑色
282+
![image](https://github.com/antvis/L7/assets/173980036/7b00ae4c-5cc2-4e62-8916-960386ca6aba)
283+
284+
285+
### 重现链接
286+
287+
https://codesandbox.i...
288+
```

0 commit comments

Comments
 (0)