new Cesium.SceneModePicker(container, scene, duration)

NT 0 SceneModePicker是用于在场景模式间切换的单个按钮部件; 显示在它的扩展状态的左边。 场景模式的程序切换会 自动在部件中反映,只要指定的 NT% 0 is used to perform the change.


Name Type Default Description
container Element | string The DOM element or ID that will contain the widget.
scene Scene The Scene instance to use.
duration number 2.0 optional 时间,以秒计,需要场景过渡.
Throws:
  • DeveloperError : Element with id "container" does not exist in the document.
Example:
// In HTML head, include a link to the SceneModePicker.css stylesheet,
// and in the body, include: <div id="sceneModePickerContainer"></div>
// Note: This code assumes you already have a Scene instance.

const sceneModePicker = new Cesium.SceneModePicker('sceneModePickerContainer', scene);

Members

container : Element

得到母容器.
获得观音模型.

Methods

destroy()

摧毁部件。 如果永久调用, 应该调用 从布局中删除部件 .

isDestroyed()boolean

Returns:
如果物体已被销毁, 则真实无误 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.