ProjectionPicker 是一个用于在透视投影和正交投影之间切换的单按钮控件。
| Name | Type | Description |
|---|---|---|
container |
Element | string | 将包含该控件的 DOM 元素或 ID。 |
scene |
Scene | 要使用的 Scene 实例。 |
Throws:
-
DeveloperError : 文档中不存在 id 为 "container" 的元素。
Example:
// In HTML head, include a link to the ProjectionPicker.css stylesheet,
// and in the body, include: <div id="projectionPickerContainer"></div>
// Note: This code assumes you already have a Scene instance.
const projectionPicker = new Cesium.ProjectionPicker('projectionPickerContainer', scene);
Members
获取父容器。
获取视图模型。
Methods
销毁该控件。如果要从布局中永久
移除该控件,应调用此方法。
Returns:
如果对象已被销毁则为 true,否则为 false。
