English中文

Timeline

new Cesium.Timeline(container, clock)

时间轴是用于显示和控制当前场景时间的小部件。 The Timeline is a widget for displaying and controlling the current scene time.
名称 Name 类型 Type 说明 Description
container Element 该小部件的父 HTML 容器节点。 The parent HTML container node for this widget.
clock Clock 要使用的时钟。 The clock to use.

成员 Members

获取父容器。 Gets the parent container.

方法 Methods

销毁小部件。如果从布局中永久删除小部件,则应调用。 Destroys the widget. Should be called if permanently removing the widget from layout.

isDestroyed()boolean

返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
调整小部件的大小以匹配容器大小。 Resizes the widget to match the container size.

zoomTo(startTime, stopTime)

将视图设置为提供的时间。 Sets the view to the provided times.
名称 Name 类型 Type 说明 Description
startTime JulianDate 开始时间。 The start time.
stopTime JulianDate 停止时间。 The stop time.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.