多mb轨迹控制打开和显隐等
This commit is contained in:
		
							parent
							
								
									61acdaa593
								
							
						
					
					
						commit
						6bb47a1403
					
				@ -8,6 +8,7 @@ export default class Radar {
 | 
				
			|||||||
    this.minimumClock = options.minimumClock || 360
 | 
					    this.minimumClock = options.minimumClock || 360
 | 
				
			||||||
    this.entity = null
 | 
					    this.entity = null
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    this.label = options.label
 | 
				
			||||||
    this.bindEntity = options.bindEntity
 | 
					    this.bindEntity = options.bindEntity
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  cartesian32LonLat(cartesian3) {
 | 
					  cartesian32LonLat(cartesian3) {
 | 
				
			||||||
@ -27,6 +28,15 @@ export default class Radar {
 | 
				
			|||||||
          this.bindEntity.position.getValue(viewer.clock.currentTime)
 | 
					          this.bindEntity.position.getValue(viewer.clock.currentTime)
 | 
				
			||||||
        return position
 | 
					        return position
 | 
				
			||||||
      }),
 | 
					      }),
 | 
				
			||||||
 | 
					      label: {
 | 
				
			||||||
 | 
					        text: this.label,
 | 
				
			||||||
 | 
					        font: '14px sans-serif',
 | 
				
			||||||
 | 
					        fillColor: Cesium.Color.fromCssColorString('#fff'),
 | 
				
			||||||
 | 
					        outlineColor: Cesium.Color.fromCssColorString('#000'),
 | 
				
			||||||
 | 
					        outlineWidth: 2,
 | 
				
			||||||
 | 
					        style: Cesium.LabelStyle.FILL_AND_OUTLINE,
 | 
				
			||||||
 | 
					        pixelOffset: new Cesium.Cartesian2(0, -20),
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
      ellipsoid: {
 | 
					      ellipsoid: {
 | 
				
			||||||
        innerRadii: new Cesium.Cartesian3(1.0, 1.0, 1.0),
 | 
					        innerRadii: new Cesium.Cartesian3(1.0, 1.0, 1.0),
 | 
				
			||||||
        radii: new Cesium.Cartesian3(this.radius, this.radius, this.radius),
 | 
					        radii: new Cesium.Cartesian3(this.radius, this.radius, this.radius),
 | 
				
			||||||
 | 
				
			|||||||
@ -14,6 +14,7 @@ function addSectorDetectionLoad({
 | 
				
			|||||||
  maximumClock,
 | 
					  maximumClock,
 | 
				
			||||||
  minimumClock,
 | 
					  minimumClock,
 | 
				
			||||||
  bindEntity,
 | 
					  bindEntity,
 | 
				
			||||||
 | 
					  name,
 | 
				
			||||||
}) {
 | 
					}) {
 | 
				
			||||||
  const radar = new Radar({
 | 
					  const radar = new Radar({
 | 
				
			||||||
    radius,
 | 
					    radius,
 | 
				
			||||||
@ -22,6 +23,7 @@ function addSectorDetectionLoad({
 | 
				
			|||||||
    maximumClock,
 | 
					    maximumClock,
 | 
				
			||||||
    minimumClock,
 | 
					    minimumClock,
 | 
				
			||||||
    bindEntity,
 | 
					    bindEntity,
 | 
				
			||||||
 | 
					    label: name,
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const sector = radar.create()
 | 
					  const sector = radar.create()
 | 
				
			||||||
@ -34,6 +36,7 @@ function addConicDetectionLoad({
 | 
				
			|||||||
  bindEntity,
 | 
					  bindEntity,
 | 
				
			||||||
  heading,
 | 
					  heading,
 | 
				
			||||||
  pitch,
 | 
					  pitch,
 | 
				
			||||||
 | 
					  name,
 | 
				
			||||||
  show = true,
 | 
					  show = true,
 | 
				
			||||||
}) {
 | 
					}) {
 | 
				
			||||||
  const conicSensor = new CesiumSensorVolumes.ConicSensorGraphics({
 | 
					  const conicSensor = new CesiumSensorVolumes.ConicSensorGraphics({
 | 
				
			||||||
@ -56,6 +59,15 @@ function addConicDetectionLoad({
 | 
				
			|||||||
        bindEntity.position.getValue(viewer.clock.currentTime)
 | 
					        bindEntity.position.getValue(viewer.clock.currentTime)
 | 
				
			||||||
      return position
 | 
					      return position
 | 
				
			||||||
    }),
 | 
					    }),
 | 
				
			||||||
 | 
					    label: {
 | 
				
			||||||
 | 
					      text: name,
 | 
				
			||||||
 | 
					      font: '14px sans-serif',
 | 
				
			||||||
 | 
					      fillColor: Cesium.Color.fromCssColorString('#fff'),
 | 
				
			||||||
 | 
					      outlineColor: Cesium.Color.fromCssColorString('#000'),
 | 
				
			||||||
 | 
					      outlineWidth: 2,
 | 
				
			||||||
 | 
					      style: Cesium.LabelStyle.FILL_AND_OUTLINE,
 | 
				
			||||||
 | 
					      pixelOffset: new Cesium.Cartesian2(0, 20),
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    orientation: new Cesium.CallbackProperty(() => {
 | 
					    orientation: new Cesium.CallbackProperty(() => {
 | 
				
			||||||
      const position =
 | 
					      const position =
 | 
				
			||||||
        bindEntity.position._value ||
 | 
					        bindEntity.position._value ||
 | 
				
			||||||
 | 
				
			|||||||
@ -68,6 +68,7 @@ export function useMultiZBTraj() {
 | 
				
			|||||||
          id: `${item.id}`,
 | 
					          id: `${item.id}`,
 | 
				
			||||||
          bindEntity: ZBEntity,
 | 
					          bindEntity: ZBEntity,
 | 
				
			||||||
          ...item,
 | 
					          ...item,
 | 
				
			||||||
 | 
					          name: item.id,
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        payloadMap.set(id, [...(payloadMap.get(id) || []), radar])
 | 
					        payloadMap.set(id, [...(payloadMap.get(id) || []), radar])
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
@ -77,6 +78,7 @@ export function useMultiZBTraj() {
 | 
				
			|||||||
          id: `${item.id}`,
 | 
					          id: `${item.id}`,
 | 
				
			||||||
          bindEntity: ZBEntity,
 | 
					          bindEntity: ZBEntity,
 | 
				
			||||||
          ...item,
 | 
					          ...item,
 | 
				
			||||||
 | 
					          name: item.id,
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        payloadMap.set(id, [...(payloadMap.get(id) || []), conic])
 | 
					        payloadMap.set(id, [...(payloadMap.get(id) || []), conic])
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user