Upload files to 'src/GUI'
This commit is contained in:
@@ -353,13 +353,13 @@ class DroneMap:
|
|||||||
const startBtn = document.getElementById('start-mission-btn');
|
const startBtn = document.getElementById('start-mission-btn');
|
||||||
|
|
||||||
if (centerPosition) {
|
if (centerPosition) {
|
||||||
centerElem.textContent = `${centerPosition.lat.toFixed(6)}, ${centerPosition.lng.toFixed(6)}`;
|
centerElem.textContent = `${centerPosition.lat.toFixed(6)}°, ${centerPosition.lng.toFixed(6)}°`;
|
||||||
} else {
|
} else {
|
||||||
centerElem.textContent = '未設定';
|
centerElem.textContent = '未設定';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (targetPosition) {
|
if (targetPosition) {
|
||||||
targetElem.textContent = `${targetPosition.lat.toFixed(6)}, ${targetPosition.lng.toFixed(6)}`;
|
targetElem.textContent = `${targetPosition.lat.toFixed(6)}°, ${targetPosition.lng.toFixed(6)}°`;
|
||||||
} else {
|
} else {
|
||||||
targetElem.textContent = '未設定';
|
targetElem.textContent = '未設定';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user