SelectionIndicatorViewModel

new Cesium.SelectionIndicatorViewModel(scene, selectionIndicatorElement, container)

视图模型 SelectionIndicator.
Name Type Description
scene Scene 要使用的场景实例。用于屏幕空间坐标转换。
selectionIndicatorElement Element 包含构成选择指示符的所有元素的元素。
container Element 包含小部件的DOM元素。

Members

获取或设置将对象的世界位置转换为屏幕空间位置的函数。
Default Value: SceneTransforms.worldToWindowCoordinates
Example:
selectionIndicatorViewModel.computeScreenSpacePosition = function(position, result) {
    return Cesium.SceneTransforms.worldToWindowCoordinates(scene, position, result);
};
获取包含选择指示符的HTML元素。
获取位置指示器的可见性。这可能是假的,即使 对象,当所选对象没有位置时。
获取或设置要显示选择指示符的对象的世界位置。
正在使用得到场景。
获取包含选择指示符的HTML元素。
获取或设置选择指标的可见性。

Methods

使指示符动画化以吸引对所选内容的注意。
使指示器动画化以释放所选内容。
更新选择指示器的视图,以匹配视图模型的位置和内容属性。 这个函数应该作为渲染循环的一部分来调用。

Type Definitions

Cesium.SelectionIndicatorViewModel.ComputeScreenSpacePosition(position, result)Cartesian2

将对象的世界位置转换为屏幕空间位置的函数。
Name Type Description
position Cartesian3 WGS84(世界)坐标中的位置。
result Cartesian2 一个对象,用于返回转换为窗口坐标的输入位置。
Returns:
修改后的结果参数。
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.