English中文

InfoBox

new Cesium.InfoBox(container)

用于显示信息或描述的小部件。 A widget for displaying information or a description.
名称 Name 类型 Type 说明 Description
container Element | string 将包含小部件的 DOM 元素或 ID。 The DOM element or ID that will contain the widget.
抛出: Throws:
  • DeveloperError :文档中不存在 ID 为“container”的元素。 : Element with id "container" does not exist in the document.

成员 Members

获取父容器。 Gets the parent container.

frame : HTMLIFrameElement

获取用于显示描述的 iframe。 Gets the iframe used to display the description.
获取视图模型。 Gets the view model.

方法 Methods

销毁小部件。如果从布局中永久删除小部件,则应调用。 Destroys the widget. Should be called if permanently removing the widget from layout.

isDestroyed()boolean

返回: Returns:
如果对象已被销毁,则为 true,否则为 false。 true if the object has been destroyed, false otherwise.
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.