Appearance
KBE3D / KBCore / Cesium / NavigationHelpButton
类: NavigationHelpButton
<p>The NavigationHelpButton is a single button widget for displaying instructions for navigating the globe with the mouse.</p><p style="clear: both;"></p><br/>
示例
ts
// In HTML head, include a link to the NavigationHelpButton.css stylesheet,
// and in the body, include: <div id="navigationHelpButtonContainer"></div>
const navigationHelpButton = new Cesium.NavigationHelpButton({
container : 'navigationHelpButtonContainer'
});参数
Object with the following properties:
参数
The DOM element or ID that will contain the widget.
参数
True if the navigation instructions should initially be visible; otherwise, false.
属性
container
container:
Element
Gets the parent container.
viewModel
viewModel:
NavigationHelpButtonViewModel
Gets the view model.
方法
isDestroyed()
isDestroyed():
boolean
返回
boolean
true if the object has been destroyed, false otherwise.
destroy()
destroy():
void
Destroys the widget. Should be called if permanently removing the widget from layout.
返回
void
构造函数
构造函数
new NavigationHelpButton(
options: {container:string|Element;instructionsInitiallyVisible?:boolean; }):NavigationHelpButton
参数
options
container
string | Element
instructionsInitiallyVisible?
boolean
返回
NavigationHelpButton
