antvis / antvis/L7

L7渐变线图层会一闪一闪,shape为arc状态下

Open
#2,711 2 comments 0 reactions 1 assignee Claimed by @heiyexing View on GitHub
bug
Dominant language
TypeScript
Stars
4.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

地图用的mapbox 示例,使用了antv/l7 的线图层,颜色配置了渐变。 交汇处会出现一块一块不规则颜色,如截图。滚轮缩放也会一闪一闪。
![Image](https://github.com/user-attachments/assets/92a7c9e5-0342-4dbf-a132-b55aa377b811)

代码如下
```js
this.layer = new LineLayer({
blend: 'normal',
name: 'line-layer'
})
.source(data, {
parser: {
type: 'json',
x: 'lng1',
y: 'lat1',
x1: 'lng2',
y1: 'lat2'
}
})
.size('value', [1, 100])
// .color('rgba(254,57,246, 1)')
.shape('arc')
.style({
opacity,
sourceColor: 'rgba(254, 57, 246, 1)',
targetColor: 'rgba(58, 83, 255, 1)',
})
```

### 重现链接

_No response_

### 重现步骤

_No response_

### 预期行为

_No response_

### 平台

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

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.