Skip to content

求助,如何获取动态对象的实时sampledPosition值? #252

Answered by zouyaoji
KKindom asked this question in Q&A
Discussion options

You must be logged in to vote

参考一下在线文档例子哈。获取速度不是sampledPosition吧。

https://zouyaoji.top/vue-cesium/#/zh-CN/component/overlays/vc-overlay-dynamic
标签那里有一句
const velocityVector = dynamicOverlayRef.value.getOverlays()[0]._velocityVectorProperty.getValue(time, {})
可以用这个获取速度。

另外我这 overlay._sampledPosition是有getValue方法的。你看看你vue-cesium是不是最新版本哈?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@KKindom
Comment options

@zouyaoji
Comment options

@KKindom
Comment options

@zouyaoji
Comment options

Answer selected by KKindom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants