huweili-cesium 1.2.19 → 1.2.21

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.
@@ -94,7 +94,7 @@ export function dronePlannedRouteConfig() {
94
94
  const lineColor = options.lineColor || DEFAULT_LINE_COLOR
95
95
  const lineWidth = Number(options.lineWidth) || DEFAULT_LINE_WIDTH
96
96
  const showWaypointLabels = options.showWaypointLabels !== false
97
- const waypointPixelSize = Number(options.waypointPixelSize) || 10
97
+ const waypointPixelSize = Number(options.waypointPixelSize) || 6
98
98
  const color = Cesium.Color.fromCssColorString(lineColor)
99
99
 
100
100
  const positions = normalized.map((wp) =>
@@ -141,7 +141,7 @@ export function dronePlannedRouteConfig() {
141
141
  label: showWaypointLabels
142
142
  ? {
143
143
  text: `航点${i + 1}`,
144
- font: '14px Microsoft YaHei, sans-serif',
144
+ font: '10px Microsoft YaHei, sans-serif',
145
145
  fillColor: Cesium.Color.WHITE,
146
146
  outlineColor: Cesium.Color.BLACK,
147
147
  outlineWidth: 2,
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.19",
3
+ "version": "1.2.21",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",