From b04aec0ea1ee625e81190a986ce99efbe08f5342 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 27 Aug 2016 19:19:13 +0100 Subject: [PATCH] Add A380 and B737-800 markers. --- public_html/markers.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/public_html/markers.js b/public_html/markers.js index cb8af07..bcd08e2 100755 --- a/public_html/markers.js +++ b/public_html/markers.js @@ -111,12 +111,47 @@ var _c130 = { path: "m 31,1 1,0 1,1 1,2 0,8 3,0 0,-3 1,-1 1,1 0,3 6,0 0,-3 1,-1 1,1 0,3 10,1 0,2 -1,1 -17,3 -5,0 0,10 -1,1 8,2 0,1 -1,1 -8,0 -1,1 -1,-1 -8,0 -1,-1 0,-1 8,-2 -1,-1 0,-10 -5,0 -17,-3 -1,-1 0,-2 10,-1 0,-3 1,-1 1,1 0,3 6,0 0,-3 1,-1 1,1 0,3 3,0 0,-8 1,-2 1,-1 z" }; +// by Oliver Jowett +// licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) +var _a380 = { + key: "a380", + scale: 1.26 * 0.75, + size: [64, 64], + anchor: [32, 30], + path: "m 32,59 -1,-4 -4,1 -7,3 -1,0 1,-3 1,-1 7,-6 2,-2 -1,-5 0,-9 -1,-2 -2,0 -6,2 -5,2 -5,2 -9,4 0,1 0,-3 1,-2 9,-7 -1,-1 0,-4 1,-1 1,0 1,1 0,3 1,0 5,-4 0,-5 1,-1 1,0 1,1 0,3 6,-5 1,-2 0,-7 1,-5 1,-2 1,-1 1,1 1,2 1,5 0,7 1,2 6,5 0,-3 1,-1 1,0 1,1 0,5 5,4 1,0 0,-3 1,-1 1,0 1,1 0,4 -1,1 9,7 1,2 0,3 0,-1 -9,-4 -5,-2 -5,-2 -6,-2 -2,0 -1,2 0,9 -1,5 2,2 7,6 1,1 1,3 -1,0 -7,-3 -4,-1 -1,4 z" +}; + +var _b738 = { + key: "b738", + scale: 0.63 * 0.75, + size: [64, 64], + anchor: [32, 32], + path: "m 32,61 -1,-1 -9,2 -2,1 0,-2 9,-6 1,-1 -1,-9 0,-11 -7,0 -1,1 0,-1 -3,1 -1,1 0,-1 -3,1 -9,3 -1,1 0,-2 1,-2 17,-9 1,-1 -1,-2 0,-3 1,-1 2,0 1,1 0,3 3,-2 0,-13 1,-5 1,-3 1,-1 1,1 1,3 1,5 0,13 3,2 0,-3 1,-1 2,0 1,1 0,3 -1,2 1,1 17,9 1,2 0,2 -1,-1 -9,-3 -3,-1 0,1 -1,-1 -3,-1 0,1 -1,-1 -7,0 0,11 -1,9 1,1 9,6 0,2 -2,-1 -9,-2 -1,1 z" +}; + var TypeIcons = { 'A318': _a320, // shortened a320 'A319': _a320, // shortened a320 'A320': _a320, 'A321': _a320, // stretched a320 + 'A388': _a380, + + // dubious since these are old-generation 737s + // but the shape is similar + 'B731': _b738, + 'B732': _b738, + 'B733': _b738, + 'B734': _b738, + 'B735': _b738, + + // these probably need reworking + // since they vary in length + 'B736': _b738, + 'B737': _b738, + 'B738': _b738, + 'B739': _b738, + 'B772': _b777, // all pretty similar except for length 'B77W': _b777, 'B773': _b777,