The view model for
SelectionIndicator.
| Name | Type | Description |
|---|---|---|
scene |
Scene | 用于屏幕空间坐标转换的场景实例 . |
selectionIndicatorElement |
Element | 包含构成选择指标的所有元素的元素. |
container |
Element | The DOM element that contains the widget. |
Members
computeScreenSpacePosition : SelectionIndicatorViewModel.ComputeScreenSpacePosition
获取或设置将对象的世界位置转换为屏幕空间位置的函数.
-
Default Value:
SceneTransforms.worldToWindowCoordinates
Example:
selectionIndicatorViewModel.computeScreenSpacePosition = function(position, result) {
return Cesium.SceneTransforms.worldToWindowCoordinates(scene, position, result);
};
获得含有选择指标的 NT 0 元素.
获得位置指示器的可见度. 这可能是假的,即使
当选定对象没有位置时,选择对象.
position : Cartesian3
获取或设置用于显示选择指标的对象的世界位置.
scene : Scene
得到的场景被使用.
Gets the HTML element that holds the selection indicator.
获取或设置选择指标的可见度.
Methods
Type Definitions
Cesium.SelectionIndicatorViewModel.ComputeScreenSpacePosition(position, result) → Cartesian2
将物体的世界位置转换为屏幕空间位置的函数.
| Name | Type | Description |
|---|---|---|
position |
Cartesian3 | WGS84 (世界)坐标中的位置. |
result |
Cartesian2 | 返回转换为窗口坐标的输入位置的对象 . |
Returns:
修改的结果参数 .