new NavigationHelpButton()
导航帮助按钮(NavigationHelpButton)是一个单按钮部件,用于显示用鼠标导航地球的说明。
| Name | Type | Default | Description |
|---|---|---|---|
options.container |
Element | String |
包含 widget 的 DOM 元素或 ID。 |
|
options.instructionsInitiallyVisible |
Boolean | false |
可选
如果导航说明最初可见,则为 true;否则为 false。 |
Throws:
-
文档中不存在 id 为 "container "的元素。
- 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
-
获取父容器。
-
viewModel
-
获取视图模型。
Methods
-
destroy()
-
销毁部件。应在下列情况下调用 将 widget 从布局中删除。
-
isDestroyed(){Boolean}
-
Returns:
Type Description Boolean 如果对象已被销毁,则为 true,否则为 false。