antvis / antvis/L7Plot

🤔 [QUESTION] ArcLayer 支持 label 画在飞线上面吗?

Open
#191 1 comment 0 reactions 1 assignee Claimed by @yiiiiiiqianyao View on GitHub
feature
Dominant language
TypeScript
Stars
91
Forks
21
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Question description [Please make everyone to understand it]

希望实现 label 压在飞线中央的效果,类似下图:
![image](https://user-images.githubusercontent.com/2196373/178247217-eeaf8dae-e318-4c12-b1e4-41cb8c52815d.png)
尝试了 textAnchor 和 textOffset 属性不行,现在这个 label 的锚点是基于起点是吗?有办法基于起点和终点之间弧线的中点么?

### 💻 Link to minimal reproduction

Please provide a link by forking these links [L7Plot](https://codesandbox.io/s/l7plot-issue-template-ckpvq?file=/src/index.ts) or GitHub repo. What is a minimal reproduction, and why is it required?

### 🏞 Expected result

### 🚑 Any additional [like screenshots]

- **L7Plot Version**:
- **Platform**:

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.