huweili-cesium 1.2.74 → 1.2.76
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 +8 -5
- package/js/movePoint.js +1 -1
- package/js/setPoint.js +1 -1
- package/package.json +1 -1
package/js/labelDiv.js
CHANGED
|
@@ -143,6 +143,7 @@ export function labelDiv() {
|
|
|
143
143
|
const flyingHandPhone = info?.flyingHandPhone ?? '--';
|
|
144
144
|
const frequencyBand = info?.frequencyBand ?? '--';
|
|
145
145
|
const receiveTime = info?.receiveTime ?? '--';
|
|
146
|
+
const flyingHandPosition = info?.flyingHandPosition ?? '--';
|
|
146
147
|
|
|
147
148
|
// 处理距离(保留1位小数)
|
|
148
149
|
const parseDistance = parseFloat(info?.distance);
|
|
@@ -151,7 +152,7 @@ export function labelDiv() {
|
|
|
151
152
|
|
|
152
153
|
if (nextInfoText !== lastInfoText && infoFieldEls) {
|
|
153
154
|
const {
|
|
154
|
-
lngEl, latEl, altEl, speedEl, flyingHandNameEl, flyingHandPhoneEl,
|
|
155
|
+
lngEl, latEl, altEl, speedEl, flyingHandNameEl, flyingHandPhoneEl, flyingHandPositionEl, distanceEl, receiveTimeEl
|
|
155
156
|
} = infoFieldEls;
|
|
156
157
|
if (lngEl) lngEl.textContent = lng;
|
|
157
158
|
if (latEl) latEl.textContent = lat;
|
|
@@ -162,6 +163,7 @@ export function labelDiv() {
|
|
|
162
163
|
if (flyingHandPhoneEl) flyingHandPhoneEl.textContent = flyingHandPhone;
|
|
163
164
|
if (distanceEl) distanceEl.textContent = distance;
|
|
164
165
|
if (receiveTimeEl) receiveTimeEl.textContent = receiveTime;
|
|
166
|
+
if (flyingHandPositionEl) flyingHandPositionEl.textContent = flyingHandPosition;
|
|
165
167
|
lastInfoText = nextInfoText;
|
|
166
168
|
}
|
|
167
169
|
|
|
@@ -215,7 +217,7 @@ export function labelDiv() {
|
|
|
215
217
|
<div class="drone-detail-divider"></div>
|
|
216
218
|
<div class="drone-detail-row"><span class="pilot-title">姓名:</span><span class="pilot-name">张晓峰</span></div>
|
|
217
219
|
<div class="drone-detail-row"><span class="pilot-title">电话:</span><span class="pilot-phone">18812563254</span></div>
|
|
218
|
-
<div class="drone-detail-row"><span class="pilot-title">位置:</span><span class="pilot-position"
|
|
220
|
+
<div class="drone-detail-row"><span class="pilot-title">位置:</span><span class="pilot-position">-</span></div>
|
|
219
221
|
` : ''}
|
|
220
222
|
<div class="drone-detail-row"><span class="pilot-title">时间:</span><span class="receive-time">-</span></div>
|
|
221
223
|
</div>
|
|
@@ -281,9 +283,10 @@ export function labelDiv() {
|
|
|
281
283
|
latEl: infoDiv.querySelector('.lat'),
|
|
282
284
|
altEl: infoDiv.querySelector('.alt'),
|
|
283
285
|
receiveTimeEl: infoDiv.querySelector('.receive-time'),
|
|
284
|
-
speedEl: infoDiv.querySelector('.speed'),
|
|
285
|
-
flyingHandNameEl: infoDiv.querySelector('.pilot-name'),
|
|
286
|
-
flyingHandPhoneEl: infoDiv.querySelector('.pilot-phone'),
|
|
286
|
+
speedEl: infoDiv.querySelector('.speed'), // 飞行速度
|
|
287
|
+
flyingHandNameEl: infoDiv.querySelector('.pilot-name'), // 飞手姓名
|
|
288
|
+
flyingHandPhoneEl: infoDiv.querySelector('.pilot-phone'), // 飞手电话
|
|
289
|
+
flyingHandPositionEl: infoDiv.querySelector('.pilot-position'), // 飞手位置
|
|
287
290
|
distanceEl: infoDiv.querySelector('.distance')
|
|
288
291
|
};
|
|
289
292
|
}
|
package/js/movePoint.js
CHANGED
|
@@ -255,7 +255,7 @@ export function movePointConfig(baseUrl) {
|
|
|
255
255
|
info.speed = speed
|
|
256
256
|
info.flyingHandName = options.flyingHandName || ''
|
|
257
257
|
info.flyingHandPhone = options.flyingHandPhone || ''
|
|
258
|
-
info.flyingHandPosition = options.
|
|
258
|
+
info.flyingHandPosition = `${Number(options.GROUND_LINK_LNG).toFixed(4)},${Number(options.GROUND_LINK_LAT).toFixed(4)}`
|
|
259
259
|
info.frequencyBand = options.frequencyBand || ''
|
|
260
260
|
info.distance = options.distance || ''
|
|
261
261
|
info.receiveTime = options.receiveTime || ''
|
package/js/setPoint.js
CHANGED
|
@@ -313,7 +313,7 @@ export function setPoint(baseUrl) {
|
|
|
313
313
|
id,
|
|
314
314
|
uavName,
|
|
315
315
|
getPosition: () => modelEntity.positionProperty.getValue(map.clock.currentTime),
|
|
316
|
-
getInfo: () => modelEntity.info,
|
|
316
|
+
getInfo: () => modelEntity.info, // 后续移动时,真正把业务字段写进去, 在 @js/movePoint.js 里,移动无人机时会执行:
|
|
317
317
|
getVisible: () => modelEntity.entity.show,
|
|
318
318
|
text: status === DroneStatus.UNKNOWN
|
|
319
319
|
? statusConfig.description
|