Class: ProjectionPicker

ProjectionPicker

new ProjectionPicker(container, scene)

ProjectionPicker is a single button component used to switch between perspective and orthographic projection.

Name Type Description
container Element | String

The DOM element or ID that contains the widget.

scene Scene

The scenario instance to be used.

Throws:

There is no element with ID 'container' in the document.

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

Retrieve the parent container.

Obtain the view model.

Methods

destroy()

Destruction of components. If you want to permanently delete a widget from the layout, you should call this command.

isDestroyed(){Boolean}

Returns:
Type Description
Boolean If the object has been destroyed, it is true; otherwise, it is false.