Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeline时间线 时间标与时钟currentTime对不上 #10

Closed
liseri opened this issue Jul 7, 2023 · 1 comment
Closed

timeline时间线 时间标与时钟currentTime对不上 #10

liseri opened this issue Jul 7, 2023 · 1 comment

Comments

@liseri
Copy link

liseri commented Jul 7, 2023

版本: 3.5.0
问题:如下两种情况:
第1种情况如下图表示 时钟暂停状态,时钟的时间与时间线上的时间标能对的上; 正常
1688715663398_ACDCD192-20CA-47b5-A59F-BC7E3D1C5381

第2种情况如下图表示 时钟启动状态,时钟的时间与时间线上的时间标对不上(currentTime为9点多,时间线上的时间线还没到9点); 异常
1688715695967_CA5486EE-3C37-4da1-B39B-C8EA0946A313

配置代码

const mapOptions = {
  scene: {
    clock: {
      startTime: "2022-12-23 07:30:00",
      stopTime: "2022-12-23 10:30:00",
      currentTime: "2022-12-23 09:00:00",
      multiplier: 1
    }
  },
  control: {
    clockAnimate: true,
    timeline: true
  }
}

const mapLoaded = (mapInstance: mars3d.Map) => {
  map = mapInstance

  if (map.clock && map.controls.timeline) {
    const startTime = map.clock.startTime.clone()
    const stopTime = map.clock.stopTime.clone()
    const currentTime = map.clock.currentTime.clone()

    map.controls.timeline.zoomTo(startTime, stopTime)
  }
}
@muyao1987
Copy link
Member

谢谢反馈,将在v3.5.15版本修复

@liseri liseri closed this as completed Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants