diff --git a/src/renderer/assets/aircraft/FGA_ACT_A_GA.svg b/src/renderer/assets/aircraft/FGA_ACT_A_GA.svg new file mode 100644 index 0000000..ea3bfb2 --- /dev/null +++ b/src/renderer/assets/aircraft/FGA_ACT_A_GA.svg @@ -0,0 +1,2 @@ + + diff --git a/src/renderer/assets/aircraft/FGA_ACT_B_PROP.svg b/src/renderer/assets/aircraft/FGA_ACT_B_PROP.svg new file mode 100644 index 0000000..cfb1b14 --- /dev/null +++ b/src/renderer/assets/aircraft/FGA_ACT_B_PROP.svg @@ -0,0 +1,2 @@ + + diff --git a/src/renderer/assets/aircraft/FGA_ACT_B_SHORTEN.svg b/src/renderer/assets/aircraft/FGA_ACT_B_SHORTEN.svg new file mode 100644 index 0000000..9fffc0e --- /dev/null +++ b/src/renderer/assets/aircraft/FGA_ACT_B_SHORTEN.svg @@ -0,0 +1,2 @@ + + diff --git a/src/renderer/assets/aircraft/FGA_ACT_C.svg b/src/renderer/assets/aircraft/FGA_ACT_C.svg new file mode 100644 index 0000000..1353d30 --- /dev/null +++ b/src/renderer/assets/aircraft/FGA_ACT_C.svg @@ -0,0 +1,3 @@ + + +image/svg+xml diff --git a/src/renderer/assets/aircraft/FGA_ACT_D.svg b/src/renderer/assets/aircraft/FGA_ACT_D.svg new file mode 100644 index 0000000..87895c4 --- /dev/null +++ b/src/renderer/assets/aircraft/FGA_ACT_D.svg @@ -0,0 +1,2 @@ + + diff --git a/src/renderer/assets/aircraft/FGA_ACT_E.svg b/src/renderer/assets/aircraft/FGA_ACT_E.svg new file mode 100644 index 0000000..502a9a4 --- /dev/null +++ b/src/renderer/assets/aircraft/FGA_ACT_E.svg @@ -0,0 +1,2 @@ + + diff --git a/src/renderer/assets/aircraft/FGA_ACT_F.svg b/src/renderer/assets/aircraft/FGA_ACT_F.svg new file mode 100644 index 0000000..fee4f5e --- /dev/null +++ b/src/renderer/assets/aircraft/FGA_ACT_F.svg @@ -0,0 +1,17 @@ + + + + + + +image/svg+xml + + + + + + + + + + diff --git a/src/renderer/components/EditLayer.vue b/src/renderer/components/EditLayer.vue index c321627..1bb27ee 100644 --- a/src/renderer/components/EditLayer.vue +++ b/src/renderer/components/EditLayer.vue @@ -312,7 +312,7 @@ } return this.featureLookup[index].map((element, i) => { if (element instanceof L.Polyline) { - element._latlngs.forEach((e1, index1) => { + var latLng = element._latlngs.map((e1, index1) => { console.log(e1); if (e1.attributes.index===index) { var latlng = {}; @@ -320,7 +320,8 @@ latlng.lng = e1.lng; return latlng; } - }); + }).filter(n => n); + return latLng[0]; } else if (element instanceof L.RunwayNode) { var latlng = {}; latlng.lat = element._latlng.lat;