HomeButtonViewModel - Cesium Documentation

# HomeButtonViewModel

#### new HomeButtonViewModel(scene, duration)

  The view model for `HomeButton`.

  Name | Type | Description
  --- | --- | ---
  `scene` | Scene | The scene instance to use.
  `duration` | Number | optional The duration of the camera flight in seconds.

  Source: Widgets/HomeButton/HomeButtonViewModel.js, line 87

### Members

#### command :Command

  Gets the Command that is executed when the button is clicked.
  Source: Widgets/HomeButton/HomeButtonViewModel.js, line 131

#### duration :Number|undefined

  Gets or sets the the duration of the camera flight in seconds. A value of zero causes the camera to instantly switch to home view. The duration will be computed based on the distance when undefined.
  Source: Widgets/HomeButton/HomeButtonViewModel.js, line 145

#### scene :Scene

  Gets the scene to control.
  Source: Widgets/HomeButton/HomeButtonViewModel.js, line 119

#### tooltip :String

  Gets or sets the tooltip. This property is observable.
  Source: Widgets/HomeButton/HomeButtonViewModel.js, line 107