zhanmingkan
2022-05-16 fe8da266b86f12cf7a796c8c54b812310efdc16c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function createRadar(id,far) {
  var options = {
    'viewer': parent.viewer,
    'position': parent.Cesium.Cartesian3.fromDegrees(-120.0, 40.0),
    'id': id,
    'heading': 15,
    'pitch': 0,
    'roll': 0,
    'angle': 360,
    'cone': 90,
    'far': far,
    'near': 5,
    'color': parent.Cesium.Color.RED.withAlpha(0.2),
    'outColor': parent.Cesium.Color.RED.withAlpha(0.7)
  }
  CesiumRadar.createByMousePick(options);
}
 
function removeRadar(id) {
  CesiumRadar.remove(viewer, id);
}
function clearRadar() {
  CesiumRadar.clear(viewer);
}