-
请问下,我想获取小车的每秒的sampledPosition,使用了@stop-arrived="stopArrived"但是如果设置时间倍速之后他就更新的很慢,我这边设置了一个时间监听,想获取小车的位置信息用来显示不同的车速,如何解决?我看源码里面stopArrived里面使用的 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
参考一下在线文档例子哈。获取速度不是sampledPosition吧。 https://zouyaoji.top/vue-cesium/#/zh-CN/component/overlays/vc-overlay-dynamic 另外我这 overlay._sampledPosition是有getValue方法的。你看看你vue-cesium是不是最新版本哈? |
Beta Was this translation helpful? Give feedback.
参考一下在线文档例子哈。获取速度不是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是不是最新版本哈?