File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export enum FeatureType {
12
12
/** Not provided */
13
13
// Clearway = 10,
14
14
FinalApproachAndTakeoffArea = 11 ,
15
- TouchDownLiftOfArea = 12 ,
15
+ TouchDownLiftOffArea = 12 ,
16
16
HelipadThreshold = 13 ,
17
17
TaxiwayElement = 14 ,
18
18
TaxiwayShoulder = 15 ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export type TouchDownLiftOfArea = AmdbFeature<
52
52
*/
53
53
surftype : SurfaceType
54
54
} ,
55
- FeatureType . TouchDownLiftOfArea ,
55
+ FeatureType . TouchDownLiftOffArea ,
56
56
Polygon
57
57
>
58
58
Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ export interface AmdbResultStructure {
91
91
92
92
export type AmdbLayerName = keyof AmdbResultStructure
93
93
94
+ // Type checks that FeatureType names match AmdbResultStructure so we can have an array of valid layers
95
+ export const allLayers : AmdbLayerName [ ] = Object . keys ( FeatureType )
96
+ . filter ( item => ! parseInt ( item ) && item != "0" )
97
+ . map ( item => item . toLowerCase ( ) ) as Lowercase < keyof typeof FeatureType > [ ]
98
+
94
99
export type AmdbResult < P extends AmdbLayerName > = Pick < AmdbResultStructure , P >
95
100
96
101
export enum Projection {
You can’t perform that action at this time.
0 commit comments