单目标雷达范围
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
optional
参数选项:
|
Example:
radar = viewer.scene.primitives.add(new GeoSpaceRadarPrimitive(viewer, {
show:true,
position: Cesium.Cartesian3.fromDegrees(116.517, 39.891, 100);
angle: 60,
radius: 10000,
rotation: {
heading: Cesium.Math.toRadians(0),
pitch: Cesium.Math.toRadians(40),
roll: Cesium.Math.toRadians(0)
},
color: Cesium.Color.fromCssColorString('#1E90FF').withAlpha(0.4),
lineColor: Cesium.Color.fromCssColorString('#ffffff').withAlpha(0.4),
}));
Demo:
Members
仰角
-
Default Value:
60
Example:
geoSpaceRadarPrimitive.angle = 30
雷达颜色
-
Default Value:
new Cesium.Color(1.0 ,0 ,0 ,1)
Example:
geoSpaceRadarPrimitive.color = new Cesium.Color(1.0 ,0 ,0 ,0.5)
地面投影的可见性
-
Default Value:
false
Example:
geoSpaceRadarPrimitive.groundArea = false
雷达方向角
-
Default Value:
0
Example:
geoSpaceRadarPrimitive.heading = 10
线颜色
-
Default Value:
new Cesium.Color(1.0 ,0 ,0 ,1)
Example:
geoSpaceRadarPrimitive.lineColor = new Cesium.Color(1.0 ,0 ,0 ,0.3)
lookAt : Cartesian3
摄像机的位置
-
Default Value:
undefined
Example:
geoSpaceRadarPrimitive.lookAt = Cesium.Cartesian3.fromDegrees(116.517, 39.891, 100)
雷达边框是否可见
-
Default Value:
true
Example:
geoSpaceRadarPrimitive.outline = true
雷达俯仰角
-
Default Value:
0
Example:
geoSpaceRadarPrimitive.pitch = 0
position : Cartesian3
雷达坐标
Example:
geoSpaceRadarPrimitive.position = Cesium.Cartesian3.fromDegrees(116.517, 39.891, 90000)
雷达大小
-
Default Value:
200
Example:
geoSpaceRadarPrimitive.radius = 1000
雷达翻滚角
-
Default Value:
0
Example:
geoSpaceRadarPrimitive.roll = 0
雷达是否可见
-
Default Value:
true
Example:
geoSpaceRadarPrimitive.show = true
雷达顶盖是否可见
-
Default Value:
true
Example:
geoSpaceRadarPrimitive.top = true
雷达顶盖边框是否可见
-
Default Value:
true
Example:
geoSpaceRadarPrimitive.topOutline = true