BaoXs
2022-05-14 ef260dff5d38c36272a2ac97d40db70ab3f8c2cc
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);
}