Appearance
KBE3D / KBCore / Cesium / ProjectionPicker
类: ProjectionPicker
The ProjectionPicker is a single button widget for switching between perspective and orthographic projections.
示例
ts
// 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);参数
The DOM element or ID that will contain the widget.
参数
The Scene instance to use.
属性
container
container:
Element
Gets the parent container.
viewModel
viewModel:
ProjectionPickerViewModel
Gets the view model.
方法
isDestroyed()
isDestroyed():
boolean
返回
boolean
true if the object has been destroyed, false otherwise.
destroy()
destroy():
void
Destroys the widget. Should be called if permanently removing the widget from layout.
返回
void
构造函数
构造函数
new ProjectionPicker(
container:string|Element,scene:Scene):ProjectionPicker
参数
container
string | Element
scene
返回
ProjectionPicker
