The ProjectionPicker is a single button widget for switching between perspective and orthographic projections.
||Element | string||The DOM element or ID that will contain the widget.|
||Scene||The Scene instance to use.|
DeveloperError : Element with id "container" does not exist in the document.
// 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);
Gets the parent container.
viewModel : ProjectionPickerViewModel
Gets the view model.
Destroys the widget. Should be called if permanently removing the widget from layout.
true if the object has been destroyed, false otherwise.