Class: ProjectionPicker

ProjectionPicker

new ProjectionPicker(container, scene)

ProjectionPicker 是一个用于在透视和正投影之间切换的单按钮部件。

Name Type Description
container Element | String

包含 widget 的 DOM 元素或 ID。

scene Scene

要使用的场景实例。

Throws:

文档中不存在 id 为 "container "的元素。

Type
DeveloperError
Example
// In HTML head, include a link to the ProjectionPicker.css stylesheet,
// and in the body, include: 
// Note: This code assumes you already have a Scene instance. var projectionPicker = new SuperMap3D.ProjectionPicker('projectionPickerContainer', scene);

Members

containerElement

获取父容器。

获取视图模型。

Methods

destroy()

销毁部件。如果要从布局中永久删除 widget,应调用该命令。

isDestroyed(){Boolean}

Returns:
Type Description
Boolean 如果对象已被销毁,则为 true,否则为 false。