From 620cb3a720aaa37d1114b8039f246c3a028fc477 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Mon, 18 Nov 2019 20:15:05 +0800 Subject: [PATCH] Regenerate TypeDesignatorIcons based on internal FA icon mappings --- public_html/markers.js | 297 ++++++++++++++++++++++++++++------------- 1 file changed, 202 insertions(+), 95 deletions(-) diff --git a/public_html/markers.js b/public_html/markers.js index e9207fa..53f8b3d 100755 --- a/public_html/markers.js +++ b/public_html/markers.js @@ -71,137 +71,244 @@ var shapes = { } } +// Mechanically generated exceptions to the general rules below var TypeDesignatorIcons = { - 'A318': 'airliner', // shortened a320 - 'A319': 'airliner', // shortened a320 - 'A320': 'airliner', - 'A321': 'airliner', // stretched a320 - - 'A388': 'heavy_4e', - - // dubious since these are old-generation 737s - // but the shape is similar - 'B731': 'airliner', - 'B732': 'airliner', - 'B733': 'airliner', - 'B734': 'airliner', - 'B735': 'airliner', - - // these probably need reworking - // since they vary in length - 'B736': 'airliner', - 'B737': 'airliner', - 'B738': 'airliner', - 'B739': 'airliner', - - 'B741': 'heavy_4e', - 'B742': 'heavy_4e', - 'B743': 'heavy_4e', - 'B744': 'heavy_4e', - 'B74D': 'heavy_4e', - 'B74S': 'heavy_4e', - 'B74R': 'heavy_4e', - 'BLCF': 'heavy_2e', - 'BSCA': 'heavy_4e', // hah! - 'B748': 'heavy_4e', - - 'B772': 'heavy_2e', // all pretty similar except for length - 'B77W': 'heavy_2e', - 'B773': 'heavy_2e', - 'B77L': 'heavy_2e', - - 'E170': 'jet_swept', - 'E45X': 'jet_swept', + 'A10': 'hi_perf', + 'A148': 'hi_perf', + 'A225': 'heavy_4e', + 'A3': 'hi_perf', + 'A37': 'jet_nonswept', + 'A5': 'cessna', + 'A6': 'hi_perf', + 'A700': 'jet_nonswept', + 'AC80': 'twin_small', + 'AC90': 'twin_small', + 'AC95': 'twin_small', + 'AJ27': 'jet_nonswept', + 'AJET': 'hi_perf', + 'AN28': 'twin_small', + 'ARCE': 'hi_perf', + 'AT3': 'hi_perf', + 'ATG1': 'jet_nonswept', + 'B18T': 'twin_small', + 'B190': 'twin_small', + 'B25': 'twin_large', + 'B350': 'twin_small', + 'B52': 'heavy_4e', 'B712': 'jet_swept', + 'B721': 'airliner', + 'B722': 'airliner', + 'BALL': 'balloon', + 'BE10': 'twin_small', + 'BE20': 'twin_small', + 'BE30': 'twin_small', + 'BE32': 'twin_small', + 'BE40': 'jet_nonswept', + 'BE99': 'twin_small', + 'BE9L': 'twin_small', + 'BE9T': 'twin_small', + 'BN2T': 'twin_small', + 'BPOD': 'jet_swept', + 'BU20': 'twin_small', + 'C08T': 'jet_swept', + 'C125': 'twin_small', + 'C212': 'twin_small', + 'C21T': 'twin_small', + 'C22J': 'jet_nonswept', + 'C25A': 'jet_nonswept', + 'C25B': 'jet_nonswept', + 'C25C': 'jet_nonswept', + 'C25M': 'jet_nonswept', + 'C425': 'twin_small', + 'C441': 'twin_small', + 'C46': 'twin_large', + 'C500': 'jet_nonswept', + 'C501': 'jet_nonswept', + 'C510': 'jet_nonswept', + 'C525': 'jet_nonswept', + 'C526': 'jet_nonswept', + 'C550': 'jet_nonswept', + 'C551': 'jet_nonswept', + 'C55B': 'jet_nonswept', + 'C560': 'jet_nonswept', + 'C56X': 'jet_nonswept', 'C650': 'jet_swept', + 'C680': 'jet_nonswept', + 'C68A': 'jet_nonswept', 'C750': 'jet_swept', - 'E135': 'jet_swept', - 'E145': 'jet_swept', + 'C82': 'twin_large', + 'CKUO': 'hi_perf', 'CL30': 'jet_swept', 'CL35': 'jet_swept', 'CL60': 'jet_swept', - 'GL5T': 'jet_swept', - 'GLF2': 'jet_swept', // close enough - 'GLF3': 'jet_swept', - 'GLF4': 'jet_swept', - 'GLF5': 'jet_swept', - 'GLF6': 'jet_swept', 'CRJ1': 'jet_swept', 'CRJ2': 'jet_swept', 'CRJ7': 'jet_swept', 'CRJ9': 'jet_swept', + 'CRJX': 'jet_swept', + 'CVLP': 'twin_large', + 'D228': 'twin_small', + 'DA36': 'hi_perf', + 'DA50': 'airliner', + 'DC10': 'heavy_2e', + 'DC3': 'twin_large', + 'DC3S': 'twin_large', + 'DHA3': 'twin_small', + 'DHC4': 'twin_large', + 'DHC6': 'twin_small', + 'DLH2': 'hi_perf', + 'E110': 'twin_small', + 'E135': 'jet_swept', + 'E145': 'jet_swept', + 'E29E': 'hi_perf', + 'E45X': 'jet_swept', + 'E500': 'jet_nonswept', + 'E50P': 'jet_nonswept', + 'E545': 'jet_swept', + 'E55P': 'jet_nonswept', + 'EA50': 'jet_nonswept', + 'EFAN': 'jet_nonswept', + 'EFUS': 'hi_perf', + 'ELIT': 'jet_nonswept', + 'EUFI': 'hi_perf', + 'F1': 'hi_perf', + 'F100': 'jet_swept', + 'F111': 'hi_perf', + 'F117': 'hi_perf', + 'F14': 'hi_perf', + 'F15': 'hi_perf', + 'F22': 'hi_perf', + 'F2TH': 'jet_swept', + 'F4': 'hi_perf', + 'F406': 'twin_small', + 'F5': 'hi_perf', + 'F900': 'jet_swept', + 'FA50': 'jet_swept', + 'FA5X': 'jet_swept', + 'FA7X': 'jet_swept', + 'FA8X': 'jet_swept', + 'FJ10': 'jet_nonswept', + 'FOUG': 'jet_nonswept', + 'FURY': 'hi_perf', + 'G3': 'airliner', + 'GENI': 'hi_perf', + 'GL5T': 'jet_swept', + 'GLF2': 'jet_swept', + 'GLF3': 'jet_swept', + 'GLF4': 'jet_swept', + 'GLF5': 'jet_swept', + 'GLF6': 'jet_swept', + 'GSPN': 'jet_nonswept', 'H25A': 'jet_swept', 'H25B': 'jet_swept', 'H25C': 'jet_swept', - 'MD80': 'jet_swept', + 'HA4T': 'airliner', + 'HDJT': 'jet_nonswept', + 'HERN': 'jet_swept', + 'J8A': 'hi_perf', + 'J8B': 'hi_perf', + 'JH7': 'hi_perf', + 'JS31': 'twin_small', + 'JS32': 'twin_small', + 'JU52': 'twin_small', + 'L101': 'heavy_2e', + 'LAE1': 'hi_perf', + 'LEOP': 'jet_nonswept', + 'LJ23': 'jet_nonswept', + 'LJ24': 'jet_nonswept', + 'LJ25': 'jet_nonswept', + 'LJ28': 'jet_nonswept', + 'LJ31': 'jet_nonswept', + 'LJ35': 'jet_nonswept', + 'LJ40': 'jet_nonswept', + 'LJ45': 'jet_nonswept', + 'LJ55': 'jet_nonswept', + 'LJ60': 'jet_nonswept', + 'LJ70': 'jet_nonswept', + 'LJ75': 'jet_nonswept', + 'LJ85': 'jet_nonswept', + 'LTNG': 'hi_perf', + 'M28': 'twin_small', + 'MD11': 'heavy_2e', 'MD81': 'jet_swept', 'MD82': 'jet_swept', 'MD83': 'jet_swept', 'MD87': 'jet_swept', 'MD88': 'jet_swept', - - - - 'A37': 'hi_perf', - 'A700': 'hi_perf', - 'LEOP': 'hi_perf', - 'ME62': 'hi_perf', - 'T2': 'hi_perf', - 'T37': 'hi_perf', - 'T38': 'hi_perf', - 'A10': 'hi_perf', - 'A148': 'hi_perf', - 'A3': 'hi_perf', - 'A6': 'hi_perf', - 'AJET': 'hi_perf', - 'AT3': 'hi_perf', - 'CKUO': 'hi_perf', - 'EUFI': 'hi_perf', - 'F1': 'hi_perf', - 'F100': 'hi_perf', - 'F111': 'hi_perf', - 'F117': 'hi_perf', - 'F14': 'hi_perf', - 'F15': 'hi_perf', - 'F18': 'hi_perf', - 'F22': 'hi_perf', - 'F22A': 'hi_perf', - 'F4': 'hi_perf', - 'F5': 'hi_perf', - 'FOUG': 'hi_perf', - 'J8A': 'hi_perf', - 'J8B': 'hi_perf', - 'JH7': 'hi_perf', - 'LTNG': 'hi_perf', + 'MD90': 'jet_swept', + 'ME62': 'jet_nonswept', 'METR': 'hi_perf', 'MG19': 'hi_perf', 'MG25': 'hi_perf', 'MG29': 'hi_perf', 'MG31': 'hi_perf', 'MG44': 'hi_perf', - 'MIR4': 'hi_perf', - 'MT2': 'hi_perf', - 'Q5': 'hi_perf', + 'MH02': 'jet_nonswept', + 'MS76': 'jet_nonswept', + 'MT2': 'hi_perf', + 'MU2': 'twin_small', + 'P180': 'twin_small', + 'P2': 'twin_large', + 'P68T': 'twin_small', + 'PA47': 'jet_nonswept', + 'PAT4': 'twin_small', + 'PAY1': 'twin_small', + 'PAY2': 'twin_small', + 'PAY3': 'twin_small', + 'PAY4': 'twin_small', + 'PIAE': 'hi_perf', + 'PIT4': 'hi_perf', + 'PITE': 'hi_perf', + 'PRM1': 'jet_nonswept', + 'PRTS': 'jet_nonswept', + 'Q5': 'hi_perf', + 'R721': 'airliner', + 'R722': 'airliner', 'RFAL': 'hi_perf', - 'S3': 'hi_perf', - 'S37': 'hi_perf', + 'ROAR': 'hi_perf', + 'S3': 'hi_perf', + 'S32E': 'hi_perf', + 'S37': 'hi_perf', + 'S601': 'jet_nonswept', + 'SATA': 'jet_nonswept', + 'SB05': 'jet_nonswept', + 'SC7': 'twin_small', + 'SF50': 'jet_nonswept', + 'SJ30': 'jet_nonswept', + 'SLCH': 'heavy_4e', + 'SM60': 'twin_small', + 'SOL1': 'jet_swept', + 'SOL2': 'jet_swept', + 'SP33': 'jet_nonswept', 'SR71': 'hi_perf', + 'SS2': 'hi_perf', 'SU15': 'hi_perf', 'SU24': 'hi_perf', 'SU25': 'hi_perf', 'SU27': 'hi_perf', + 'SW2': 'twin_small', + 'SW3': 'twin_small', + 'SW4': 'twin_small', + 'T154': 'airliner', + 'T2': 'jet_nonswept', 'T22M': 'hi_perf', - 'T4': 'hi_perf', - 'TOR': 'hi_perf', + 'T37': 'jet_nonswept', + 'T38': 'jet_nonswept', + 'T4': 'hi_perf', + 'TJET': 'jet_nonswept', + 'TOR': 'hi_perf', + 'TRIM': 'twin_small', + 'TRIS': 'twin_small', + 'TRMA': 'twin_small', 'TU22': 'hi_perf', 'VAUT': 'hi_perf', - 'WB57': 'hi_perf', 'Y130': 'hi_perf', + 'Y141': 'airliner', 'YK28': 'hi_perf', - // 'BE20': _b200, - - // 'C130': _c130, - // 'C30J': _c130 + 'YK38': 'airliner', + 'YK40': 'airliner', + 'YK42': 'airliner', + 'YURO': 'hi_perf' }; // Maps ICAO aircraft type description codes (e.g. "L2J") to aircraft icons. This is used if the ICAO type designator (e.g. "B731")