antvis / antvis/L7

L7集成threejs,onAddMeshs方法中提供的scene.add()添加three中Line2类型线失败

Open
#2,031 5 comments 3 reactions 2 assignees Claimed by @heiyexing View on GitHub
🌟 star good first issue
Dominant language
TypeScript
Stars
4.1k
Forks
656
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

L7集成threejs,ThreeLayer的onAddMeshs方法中提供的scene.add()添加three中Line2类型线失败,并报错
![image](https://github.com/antvis/L7/assets/27940504/a1ca7755-7484-40b3-b6e9-eaf4a60d923c)

### 重现链接

https://codesandbox.io/p/sandbox/cranky-mcclintock-z4ps9z?file=%2Fsrc%2Fcomponents%2FTestLine.vue%3A1%2C1

### 重现步骤

### 预期行为

TestL7Line文件和TestLine文件引用同一个ccreateLineWithLine2方法,L7地图中线未出现,期望出现一条自地图中心119高度至左下方的线(由于世界坐标为0,0,0,所以另一端点较远,未在屏幕展示,可参考createLineWithLineBasic方法)

### 平台

- 操作系统: macOS
- 网页浏览器: Google Chrome 119.0.6045.105
- threejs: 0.115.0
- @antv/l7: ^2.19.6
- @antv/l7-three: ^2.19.6

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

threejs:
![image](https://github.com/antvis/L7/assets/27940504/bfd96ba8-7f57-43fd-b20c-19d44edccbed)

L7 with threejs:
![image](https://github.com/antvis/L7/assets/27940504/265f1e9a-2690-4472-ad94-a493d139bed9)

### 补充说明(可选)

_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.