ProjectionPicker

new Cesium.ProjectionPicker (container, scene)

ProjectionPicker是一个单按钮小部件,用于在透视和正投影之间进行切换。
Name Type Description
container Element | String 将包含窗口小部件的DOM元素或ID。
scene Scene 要使用的Scene实例。
Throws:
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.

var projectionPicker = new Cesium.ProjectionPicker('projectionPickerContainer', scene);

Members

获取父容器。
获取视图模型。

Methods

销毁小部件。如果永久应调用从布局中删除小部件。
Returns:
如果对象已销毁,则为true,否则为false。