huweili-cesium 1.2.18 → 1.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/hemisphere.js CHANGED
@@ -50,7 +50,7 @@ export function hemisphereConfig() {
50
50
  */
51
51
  const getHemisphereLabelText = (label, radius) => {
52
52
  const radiusLabel = formatHemisphereRadiusLabel(radius);
53
- return radiusLabel ? `${label}\n${radiusLabel}` : label;
53
+ return radiusLabel ? `${label} ${radiusLabel}` : label;
54
54
  }
55
55
 
56
56
  /**
package/js/setPoint.js CHANGED
@@ -315,7 +315,11 @@ export function setPoint(baseUrl) {
315
315
  getPosition: () => modelEntity.positionProperty.getValue(map.clock.currentTime),
316
316
  getInfo: () => modelEntity.info,
317
317
  getVisible: () => modelEntity.entity.show,
318
- text: status === DroneStatus.UNKNOWN ? statusConfig.description : `${statusConfig.description}: ${uavName}`,
318
+ text: status === DroneStatus.UNKNOWN
319
+ ? statusConfig.description
320
+ : status === DroneStatus.MACHINE_NEST
321
+ ? '机巢无人机'
322
+ : `${statusConfig.description}: ${uavName}`,
319
323
  status,
320
324
  map,
321
325
  mapId
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huweili-cesium",
3
- "version": "1.2.18",
3
+ "version": "1.2.20",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",