ProjectionPicker是一個用于在透視投影和正交投影之間切換的單按鈕小部件。
new ProjectionPicker(container, scene)
Parameters:
container
((Element | String))
將包含該小部件的DOM元素或ID。
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 bmgl.ProjectionPicker('projectionPickerContainer', scene);
Throws
-
DeveloperError : 文檔中不存在ID為“container”的元素。
Members
container : Element
獲取父容器。
viewModel : ProjectionPickerViewModel
獲取視圖模型。
Methods
destroy()
銷毀小部件。如果從布局中永久刪除小部件,則應調用。