new Cesium.InfoBoxViewModel()

The view model for InfoBox.

Members

cameraClicked : Event

Gets an Event that is fired when the user clicks the camera icon.

cameraIconPath : string

获取相机图标的 NT 0 路径,该路径可以更改为"横跨"与否.

closeClicked : Event

Gets an Event that is fired when the user closes the info box.

description : string

获取或设置信息框的描述 HTML .

enableCamera : boolean

获取或设定相机跟踪图标是否启用 .

isCameraTracking : boolean

获取或设置选定对象当前相机跟踪状态.

maxHeight : number

获取或设置以像素显示的信息框的最大高度. 这块地皮是可观察到的.

showInfo : boolean

获取或设置信息框的可见度.

titleText : string

在信息框中获取或设置标题文本.

Methods

maxHeightOffset(offset)string

获得信息框内各节的最大高度,减去一个偏移,以 NT 0 准备形式.
Name Type Description
offset number 以像素计算.
Returns:
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.