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

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

Open
dickeylth opened this issue Jul 11, 2022 · 1 comment
Open

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

dickeylth opened this issue Jul 11, 2022 · 1 comment
Assignees
Labels

Comments

@dickeylth
Copy link

🐛 Question description [Please make everyone to understand it]

希望实现 label 压在飞线中央的效果,类似下图:
image
尝试了 textAnchor 和 textOffset 属性不行,现在这个 label 的锚点是基于起点是吗?有办法基于起点和终点之间弧线的中点么?

💻 Link to minimal reproduction

Please provide a link by forking these links L7Plot or GitHub repo. What is a minimal reproduction, and why is it required?

🏞 Expected result

🚑 Any additional [like screenshots]

  • L7Plot Version:
  • Platform:
@lvisei
Copy link
Member

lvisei commented Jul 14, 2022

@dickeylth 流向图现在只支持 label 标注在起终点,要实现标注在中间可自定义加一个 TextLayer 实现(需要计算中心经纬度点,后面排期计划上一个这个功能

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

No branches or pull requests

3 participants