L7Plot icon indicating copy to clipboard operation
L7Plot copied to clipboard

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

Open dickeylth opened this issue 2 years ago • 1 comments

🐛 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:

dickeylth avatar Jul 11 '22 10:07 dickeylth

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

lvisei avatar Jul 14 '22 11:07 lvisei