HomeButtonViewModel

HomeButtonViewModel

new

The view model for HomeButton.

Parameters:
Name Type Argument Default Description
scene Scene The scene instance to use.
ellipsoid Ellipsoid <optional>
Ellipsoid.WGS84 The ellipsoid to be viewed when in home position.
duration Number <optional>
1500 The duration of the camera flight in milliseconds
Source:

Members

:Command

Gets the Command that is executed when the button is clicked.

:Number

Gets or sets the the duration of the camera flight in milliseconds. A value of zero causes the camera to instantly switch to home view.

:Ellipsoid

Gets the ellipsoid to be viewed when in home position.

:Scene

Gets the scene to control.

:String

Gets or sets the tooltip. This property is observable.