English中文

InfoBoxViewModel

new Cesium.InfoBoxViewModel()

视图模型为 The view model for InfoBox.

成员 Members

得到一个 Gets an Event 当用户单击相机图标时会触发该事件。 that is fired when the user clicks the camera icon.
获取相机图标的SVG路径,可以更改为“划掉”或不“划掉”。 Gets the SVG path of the camera icon, which can change to be "crossed out" or not.
得到一个 Gets an Event 当用户关闭信息框时触发。 that is fired when the user closes the info box.
获取或设置信息框的描述 HTML。 Gets or sets the description HTML for the info box.
获取或设置是否启用相机跟踪图标。 Gets or sets whether the camera tracking icon is enabled.
获取或设置所选对象的当前相机跟踪状态。 Gets or sets the status of current camera tracking of the selected object.
获取或设置信息框的最大高度(以像素为单位)。这个性质是可以观察到的。 Gets or sets the maximum height of the info box in pixels. This property is observable.
获取或设置信息框的可见性。 Gets or sets the visibility of the info box.
获取或设置信息框中的标题文本。 Gets or sets the title text in the info box.

方法 Methods

maxHeightOffset(offset)string

获取信息框中各部分的最大高度,减去偏移量,采用 CSS 就绪形式。 Gets the maximum height of sections within the info box, minus an offset, in CSS-ready form.
名称 Name 类型 Type 说明 Description
offset number 以像素为单位的偏移量。 The offset in pixels.
返回: Returns:
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.