English中文

SceneModePickerViewModel

new Cesium.SceneModePickerViewModel(scene, duration)

视图模型为 The view model for SceneModePicker.
名称 Name 类型 Type 默认值 Default 说明 Description
scene Scene 场景变形 The Scene to morph
duration number 2.0 可选 optional 场景变形动画的持续时间(以秒为单位) The duration of scene morph animations, in seconds

成员 Members

获取或设置按钮下拉列表当前是否可见。这个性质是可以观察到的。 Gets or sets whether the button drop-down is currently visible. This property is observable.
默认值: Default Value: false
获取或设置场景模式转换动画的持续时间(以秒为单位)。值为零会导致场景立即更改模式。 Gets or sets the the duration of scene mode transition animations in seconds. A value of zero causes the scene to instantly change modes.
获取变形为 2D 的命令。 Gets the command to morph to 2D.
获取变形为 3D 的命令。 Gets the command to morph to 3D.
获取变形为哥伦布视图的命令。 Gets the command to morph to Columbus View.
获取场景 Gets the scene
获取或设置当前场景模式。这个性质是可以观察到的。 Gets or sets the current SceneMode. This property is observable.
获取当前活动的工具提示。这个性质是可以观察到的。 Gets the currently active tooltip. This property is observable.
获取切换下拉框的命令。 Gets the command to toggle the drop down box.
获取或设置 2D 工具提示。这个性质是可以观察到的。 Gets or sets the 2D tooltip. This property is observable.
默认值: Default Value: '2D'
获取或设置 3D 工具提示。这个性质是可以观察到的。 Gets or sets the 3D tooltip. This property is observable.
默认值: Default Value: '3D'
获取或设置哥伦布视图工具提示。这个性质是可以观察到的。 Gets or sets the Columbus View tooltip. This property is observable.
默认值: Default Value: 'Columbus View'

方法 Methods

破坏视图模型。 Destroys the view model.
返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.