HomeButtonViewModel

new HomeButtonViewModel(scene, ellipsoid, duration)

The view model for HomeButton.
Name Type Default Description
scene Scene The scene instance to use.
ellipsoid Ellipsoid Ellipsoid.WGS84 optional The ellipsoid to be viewed when in home position.
duration Number 1500 optional The duration of the camera flight in milliseconds

Members

command :Command

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

duration :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 :Ellipsoid

Gets the ellipsoid to be viewed when in home position.

scene :Scene

Gets the scene to control.

tooltip :String

Gets or sets the tooltip. This property is observable.