new NavigationHelpButton()
The Navigation Help Button is a single button component used to display instructions for navigating the Earth with a mouse.
| Name | Type | Default | Description |
|---|---|---|---|
options.container |
Element | String |
The DOM element or ID that contains the widget. |
|
options.instructionsInitiallyVisible |
Boolean | false |
optional
If the navigation description is initially visible, it is true; Otherwise, it is false. |
Throws:
-
There is no element with ID 'container' in the document.
- Type
- DeveloperError
Example
// In HTML head, include a link to the NavigationHelpButton.css stylesheet,
// and in the body, include:
var navigationHelpButton = new SuperMap3D.NavigationHelpButton({
container : 'navigationHelpButtonContainer'
});
Members
-
containerElement
-
Retrieve the parent container.
-
viewModel
-
Obtain the view model.
Methods
-
destroy()
-
Destruction of components. The removal of widgets from the layout should be called in the following situations.
-
isDestroyed(){Boolean}
-
Returns:
Type Description Boolean If the object has been destroyed, it is true; otherwise, it is false.