huweili-cesium 1.2.76 → 1.2.77
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/labelDiv.js +6 -1
- package/js/movePoint.js +9 -1
- package/package.json +1 -1
package/js/labelDiv.js
CHANGED
|
@@ -143,7 +143,12 @@ export function labelDiv() {
|
|
|
143
143
|
const flyingHandPhone = info?.flyingHandPhone ?? '--';
|
|
144
144
|
const frequencyBand = info?.frequencyBand ?? '--';
|
|
145
145
|
const receiveTime = info?.receiveTime ?? '--';
|
|
146
|
-
const
|
|
146
|
+
const groundLinkLng = info?.groundLinkLng ?? '--';
|
|
147
|
+
const groundLinkLat = info?.groundLinkLat ?? '--';
|
|
148
|
+
const flyingHandPosition =
|
|
149
|
+
groundLinkLng !== '--' && groundLinkLat !== '--'
|
|
150
|
+
? `${groundLinkLng},${groundLinkLat}`
|
|
151
|
+
: (info?.flyingHandPosition ?? '--');
|
|
147
152
|
|
|
148
153
|
// 处理距离(保留1位小数)
|
|
149
154
|
const parseDistance = parseFloat(info?.distance);
|
package/js/movePoint.js
CHANGED
|
@@ -247,6 +247,9 @@ export function movePointConfig(baseUrl) {
|
|
|
247
247
|
modelEntity.scratchFarFutureTime ||= new Cesium.JulianDate()
|
|
248
248
|
|
|
249
249
|
// 如果存在实体,确保实体属性实时同步
|
|
250
|
+
const groundLinkLng = Number(options.GROUND_LINK_LNG)
|
|
251
|
+
const groundLinkLat = Number(options.GROUND_LINK_LAT)
|
|
252
|
+
|
|
250
253
|
const info = modelEntity.info || (modelEntity.info = {})
|
|
251
254
|
info.pointId = pointId
|
|
252
255
|
info.lng = lng
|
|
@@ -255,7 +258,12 @@ export function movePointConfig(baseUrl) {
|
|
|
255
258
|
info.speed = speed
|
|
256
259
|
info.flyingHandName = options.flyingHandName || ''
|
|
257
260
|
info.flyingHandPhone = options.flyingHandPhone || ''
|
|
258
|
-
info.
|
|
261
|
+
info.groundLinkLng = Number.isFinite(groundLinkLng) ? groundLinkLng.toFixed(4) : '--'
|
|
262
|
+
info.groundLinkLat = Number.isFinite(groundLinkLat) ? groundLinkLat.toFixed(4) : '--'
|
|
263
|
+
info.flyingHandPosition =
|
|
264
|
+
info.groundLinkLng !== '--' && info.groundLinkLat !== '--'
|
|
265
|
+
? `${info.groundLinkLng},${info.groundLinkLat}`
|
|
266
|
+
: '--'
|
|
259
267
|
info.frequencyBand = options.frequencyBand || ''
|
|
260
268
|
info.distance = options.distance || ''
|
|
261
269
|
info.receiveTime = options.receiveTime || ''
|