new Cesium.FullscreenButtonViewModel(fullscreenElement, container)

The view model for FullscreenButton.
Name Type Default Description
fullscreenElement Element | string document.body optional The element or id to be placed into fullscreen mode.
container Element | string optional The DOM element or ID that will contain the widget.

Members

command : Command

使命令切换全屏模式.

fullscreenElement : Element

Gets or sets the HTML element to place into fullscreen mode when the 已按下相应的按钮.

isFullscreen : boolean

获取是否激活全屏模式 。 这块地皮是可观察到的.

isFullscreenEnabled : boolean

获取或不启用全屏功能。 这块地产是可观察的.
See:

tooltip : string

获得工具提示。 这块地皮是可观察到的.

Methods

destroy()

破坏观景模式. 应召 在不再需要时适当清理视图模型.

isDestroyed()boolean

Returns:
如果物体已被销毁, 则真实无误 .
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.