2017-11-24 23:04:46 +00:00
|
|
|
# Navigation Map Styles
|
2017-12-27 19:51:54 +00:00
|
|
|
var NavigationMapStyles =
|
2017-11-24 23:04:46 +00:00
|
|
|
{
|
|
|
|
new : func() {
|
2017-12-27 19:51:54 +00:00
|
|
|
var obj = { parents : [ NavigationMapStyles ]};
|
2017-11-24 23:04:46 +00:00
|
|
|
obj.Styles = {};
|
|
|
|
obj.loadStyles();
|
|
|
|
return obj;
|
|
|
|
},
|
|
|
|
|
|
|
|
getStyle : func(type) {
|
|
|
|
return me.Styles[type];
|
|
|
|
},
|
|
|
|
|
|
|
|
setStyle : func(type, name, value) {
|
|
|
|
me.Styles[type][name] = value;
|
|
|
|
},
|
|
|
|
|
|
|
|
loadStyles : func() {
|
|
|
|
me. clearStyles();
|
|
|
|
me.Styles.DME = {};
|
|
|
|
me.Styles.DME.debug = 1; # HACK for benchmarking/debugging purposes
|
|
|
|
me.Styles.DME.animation_test = 0; # for prototyping animated symbols
|
|
|
|
|
|
|
|
me.Styles.DME.scale_factor = 0.4; # 40% (applied to whole group)
|
|
|
|
me.Styles.DME.line_width = 3.0;
|
|
|
|
me.Styles.DME.color_tuned = [0,1,0]; #rgb
|
|
|
|
me.Styles.DME.color_default = [1,1,0]; #rgb
|
|
|
|
|
|
|
|
me.Styles.APT = {};
|
|
|
|
me.Styles.APT.scale_factor = 0.4; # 40% (applied to whole group)
|
|
|
|
me.Styles.APT.line_width = 3.0;
|
|
|
|
me.Styles.APT.color_default = [0,0.6,0.85]; #rgb
|
|
|
|
me.Styles.APT.label_font_color = me.Styles.APT.color_default;
|
|
|
|
me.Styles.APT.label_font_size=28;
|
|
|
|
|
|
|
|
me.Styles.TFC = {};
|
|
|
|
me.Styles.TFC.scale_factor = 0.4; # 40% (applied to whole group)
|
|
|
|
|
|
|
|
me.Styles.WPT = {};
|
|
|
|
me.Styles.WPT.scale_factor = 0.5; # 50% (applied to whole group)
|
|
|
|
|
|
|
|
me.Styles.RTE = {};
|
|
|
|
me.Styles.RTE.line_width = 2;
|
|
|
|
|
|
|
|
me.Styles.FLT = {};
|
|
|
|
me.Styles.FLT.line_width = 3;
|
|
|
|
|
|
|
|
me.Styles.FIX = {};
|
2018-01-31 22:47:35 +00:00
|
|
|
me.Styles.FIX.color = [0,0,0]; # White outline
|
|
|
|
me.Styles.FIX.fill_color = [1,1,1,1]; # Black fill
|
2018-02-02 16:06:42 +00:00
|
|
|
me.Styles.FIX.scale_factor = 0.5; # 60%
|
2017-11-24 23:04:46 +00:00
|
|
|
|
2018-01-31 22:47:35 +00:00
|
|
|
me.Styles.FIX.text_offset = [0, -12];
|
|
|
|
me.Styles.FIX.text_color = [0,0,0,1]; # Black text ...
|
|
|
|
me.Styles.FIX.text_bgcolor = [1,1,1,1]; # ... on a white background
|
|
|
|
me.Styles.FIX.text_mode = canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX;
|
|
|
|
me.Styles.FIX.text_padding = 2;
|
|
|
|
me.Styles.FIX.text_alignment = 'center-bottom';
|
|
|
|
|
2018-02-02 16:06:42 +00:00
|
|
|
me.Styles.NDB = {};
|
|
|
|
me.Styles.NDB.scale_factor = 0.5; # 60%
|
|
|
|
me.Styles.NDB.dash_array = [1,1];
|
|
|
|
me.Styles.NDB.text_offset = [0, -12];
|
|
|
|
me.Styles.NDB.text_color = [0,0,0,1]; # Black text ...
|
|
|
|
me.Styles.NDB.text_bgcolor = [1,1,1,1]; # ... on a white background
|
|
|
|
me.Styles.NDB.text_mode = canvas.Text.TEXT + canvas.Text.FILLEDBOUNDINGBOX;
|
|
|
|
me.Styles.NDB.text_padding = 2;
|
|
|
|
me.Styles.NDB.text_alignment = 'center-bottom';
|
|
|
|
|
|
|
|
|
2017-11-24 23:04:46 +00:00
|
|
|
me.Styles.VOR = {};
|
|
|
|
me.Styles.VOR.range_line_width = 2;
|
|
|
|
me.Styles.VOR.radial_line_width = 1;
|
|
|
|
me.Styles.VOR.scale_factor = 0.6; # 60%
|
|
|
|
|
|
|
|
me.Styles.APS = {};
|
|
|
|
me.Styles.APS.scale_factor = 0.25;
|
|
|
|
},
|
|
|
|
|
|
|
|
clearStyles : func() {
|
|
|
|
me.Styles = {};
|
|
|
|
},
|
|
|
|
|
|
|
|
};
|