maptalks / maptalks.three

A maptalks layer to render with three.js.
https://deyihu.github.io/maptalks.three.website/
MIT License
575 stars 131 forks source link

toExtrudeLineTrail里的speed设置为0.7的时候报错 #575

Closed zhouzhili closed 1 year ago

zhouzhili commented 1 year ago

demo文件夹里的bloom.html示例,如果将206行的,threeLayer.toExtrudeLineTrail 里的 speed设置为小于1的数值时报错,

Uncaught TypeError: Cannot read properties of null (reading 'x') at Coordinate.Position (maptalks.js:311:27) at new Coordinate (maptalks.js:6010:24) at ThreeLayer.coordinateToVector3 (index.ts:190:26) at getLinePosition (LineUtil.ts:45:32) at getExtrudeLineParams (LineUtil.ts:184:23) at ExtrudeLineTrail._animation (ExtrudeLineTrail.ts:176:21) at ThreeLayer._callbackBaseObjectAnimation (index.ts:1224:28) at ThreeRenderer.renderScene (index.ts:1379:20) at ThreeLayer.renderScene (index.ts:685:22) at ThreeLayer.draw (index.ts:164:14) P image