ProjectionPickerViewModel

new Cesium.ProjectionPickerViewModel(scene)

The view model for ProjectionPicker.
Name Type Description
scene Scene The Scene to switch projections.

Members

Gets or sets whether the button drop-down is currently visible. This property is observable.
Default Value: false

isOrthographicProjection : Command

Gets whether the scene is currently using an orthographic projection.

scene : Scene

Gets the scene

sceneMode : SceneMode

Gets or sets the current SceneMode. This property is observable.

selectedTooltip : String

Gets the currently active tooltip. This property is observable.

switchToOrthographic : Command

Gets the command to switch to orthographic projection.

switchToPerspective : Command

Gets the command to switch to a perspective projection.

toggleDropDown : Command

Gets the command to toggle the drop down box.

tooltipOrthographic : String

Gets or sets the orthographic projection tooltip. This property is observable.
Default Value: 'Orthographic Projection'

tooltipPerspective : String

Gets or sets the perspective projection tooltip. This property is observable.
Default Value: 'Perspective Projection'

Methods

destroy()

Destroys the view model.

isDestroyed()Boolean

Returns:
true if the object has been destroyed, false otherwise.