HomeButton - Cesium Documentation

# HomeButton

#### new HomeButton(container, scene, duration)

  A single button widget for returning to the default camera view of the current scene.

  Name | Type | Description
  --- | --- | ---
  `container` | Element | String | The DOM element or ID that will contain the widget.
  `scene` | Scene | The Scene instance to use.
  `duration` | Number | optional The time, in seconds, it takes to complete the camera flight home.

  Source: Widgets/HomeButton/HomeButton.js, line 30

### Members

#### container :Element

  Gets the parent container.
  Source: Widgets/HomeButton/HomeButton.js, line 67

#### viewModel :HomeButtonViewModel

  Gets the view model.
  Source: Widgets/HomeButton/HomeButton.js, line 79

### Methods

#### destroy()

  Destroys the widget. Should be called if permanently removing the widget from layout.
  Source: Widgets/HomeButton/HomeButton.js, line 97

#### isDestroyed() → Boolean

  ##### Returns:

  true if the object has been destroyed, false otherwise.
  Source: Widgets/HomeButton/HomeButton.js, line 89