Description projektu, drobna uprava skeletonu pro editaci letu
This commit is contained in:
@@ -18,14 +18,18 @@ const poisWithGPS = computed(() => {
|
||||
});
|
||||
|
||||
const pointsOfInterests = computed(() => {
|
||||
const path = [{
|
||||
label: flight.value.takeoffAirport.name,
|
||||
position:
|
||||
{
|
||||
lat: flight.value.takeoffAirport.gpsLatitude,
|
||||
lng: flight.value.takeoffAirport.gpsLongitude
|
||||
}
|
||||
}];
|
||||
const path = [];
|
||||
|
||||
if (flight.value.takeoffAirport.gpsLatitude && flight.value.takeoffAirport.gpsLongitude) {
|
||||
path.push({
|
||||
label: flight.value.takeoffAirport.name,
|
||||
position:
|
||||
{
|
||||
lat: flight.value.takeoffAirport.gpsLatitude,
|
||||
lng: flight.value.takeoffAirport.gpsLongitude
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
for (const poi of poisWithGPS.value) {
|
||||
path.push({
|
||||
@@ -34,13 +38,15 @@ const pointsOfInterests = computed(() => {
|
||||
});
|
||||
}
|
||||
|
||||
path.push({
|
||||
label: flight.value.landingAirport.name,
|
||||
position: {
|
||||
lat: flight.value.landingAirport.gpsLatitude,
|
||||
lng: flight.value.landingAirport.gpsLongitude
|
||||
}
|
||||
});
|
||||
if (flight.value.landingAirport.gpsLatitude && flight.value.landingAirport.gpsLongitude) {
|
||||
path.push({
|
||||
label: flight.value.landingAirport.name,
|
||||
position: {
|
||||
lat: flight.value.landingAirport.gpsLatitude,
|
||||
lng: flight.value.landingAirport.gpsLongitude
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return path;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user