huweili-cesium 1.2.73 → 1.2.75
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 -7
- 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;
|
|
@@ -160,9 +161,9 @@ export function labelDiv() {
|
|
|
160
161
|
if (speedEl) speedEl.textContent = String(speed);
|
|
161
162
|
if (flyingHandNameEl) flyingHandNameEl.textContent = flyingHandName;
|
|
162
163
|
if (flyingHandPhoneEl) flyingHandPhoneEl.textContent = flyingHandPhone;
|
|
163
|
-
if (frequencyBandEl) frequencyBandEl.textContent = frequencyBand;
|
|
164
164
|
if (distanceEl) distanceEl.textContent = distance;
|
|
165
165
|
if (receiveTimeEl) receiveTimeEl.textContent = receiveTime;
|
|
166
|
+
if (flyingHandPositionEl) flyingHandPositionEl.textContent = flyingHandPosition;
|
|
166
167
|
lastInfoText = nextInfoText;
|
|
167
168
|
}
|
|
168
169
|
|
|
@@ -216,7 +217,7 @@ export function labelDiv() {
|
|
|
216
217
|
<div class="drone-detail-divider"></div>
|
|
217
218
|
<div class="drone-detail-row"><span class="pilot-title">姓名:</span><span class="pilot-name">张晓峰</span></div>
|
|
218
219
|
<div class="drone-detail-row"><span class="pilot-title">电话:</span><span class="pilot-phone">18812563254</span></div>
|
|
219
|
-
<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>
|
|
220
221
|
` : ''}
|
|
221
222
|
<div class="drone-detail-row"><span class="pilot-title">时间:</span><span class="receive-time">-</span></div>
|
|
222
223
|
</div>
|
|
@@ -282,10 +283,10 @@ export function labelDiv() {
|
|
|
282
283
|
latEl: infoDiv.querySelector('.lat'),
|
|
283
284
|
altEl: infoDiv.querySelector('.alt'),
|
|
284
285
|
receiveTimeEl: infoDiv.querySelector('.receive-time'),
|
|
285
|
-
speedEl: infoDiv.querySelector('.speed'),
|
|
286
|
-
flyingHandNameEl: infoDiv.querySelector('.pilot-name'),
|
|
287
|
-
flyingHandPhoneEl: infoDiv.querySelector('.pilot-phone'),
|
|
288
|
-
|
|
286
|
+
speedEl: infoDiv.querySelector('.speed'), // 飞行速度
|
|
287
|
+
flyingHandNameEl: infoDiv.querySelector('.pilot-name'), // 飞手姓名
|
|
288
|
+
flyingHandPhoneEl: infoDiv.querySelector('.pilot-phone'), // 飞手电话
|
|
289
|
+
flyingHandPositionEl: infoDiv.querySelector('.pilot-position'), // 飞手位置
|
|
289
290
|
distanceEl: infoDiv.querySelector('.distance')
|
|
290
291
|
};
|
|
291
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 = options.GROUND_LINK_LNG + ',' + options.GROUND_LINK_LAT
|
|
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
|