| 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
得到母容器.
viewModel : SceneModePickerViewModel
获得观音模型.