Debian Codegraph @

public_html/config.js

raw
1 // --------------------------------------------------------
2 //
3 // This file is to configure the configurable settings.
4 // Load this file before script.js file at gmap.html.
5 //
6 // --------------------------------------------------------
7
8 // -- Title Settings --------------------------------------
9 // Show number of aircraft and/or messages per second in the page title
10 PlaneCountInTitle = true;
11 MessageRateInTitle = false;
12
13 // -- Output Settings -------------------------------------
14 // Show metric values
15 // The Metric setting controls whether metric (m, km, km/h) or
16 // imperial (ft, NM, knots) units are used in the plane table
17 // and in the detailed plane info. If ShowOtherUnits is true,
18 // then the other unit will also be shown in the detailed plane
19 // info.
20 Metric = false;
21 ShowOtherUnits = true;
22
23 // -- Map settings ----------------------------------------
24 // These settings are overridden by any position information
25 // provided by dump1090 itself. All positions are in decimal
26 // degrees.
27
28 // Default center of the map.
29 DefaultCenterLat = 45.0;
30 DefaultCenterLon = 9.0;
31 // The google maps zoom level, 0 - 16, lower is further out
32 DefaultZoomLvl = 7;
33
34 // Center marker. If dump1090 provides a receiver location,
35 // that location is used and these settings are ignored.
36
37 SiteShow = false; // true to show a center marker
38 SiteLat = 45.0; // position of the marker
39 SiteLon = 9.0;
40 SiteName = "My Radar Site"; // tooltip of the marker
41
42 // -- Marker settings -------------------------------------
43
44 // These settings control the coloring of aircraft by altitude.
45 // All color values are given as Hue (0-359) / Saturation (0-100) / Lightness (0-100)
46 ColorByAlt = {
47 // HSL for planes with unknown altitude:
48 unknown : { h: 0, s: 0, l: 40 },
49
50 // HSL for planes that are on the ground:
51 ground : { h: 120, s: 100, l: 30 },
52
53 air : {
54 // These define altitude-to-hue mappings
55 // at particular altitudes; the hue
56 // for intermediate altitudes that lie
57 // between the provided altitudes is linearly
58 // interpolated.
59 //
60 // Mappings must be provided in increasing
61 // order of altitude.
62 //
63 // Altitudes below the first entry use the
64 // hue of the first entry; altitudes above
65 // the last entry use the hue of the last
66 // entry.
67 h: [ { alt: 2000, val: 20 }, // orange
68 { alt: 10000, val: 140 }, // light green
69 { alt: 40000, val: 300 } ], // magenta
70 s: 85,
71 l: 50,
72 },
73
74 // Changes added to the color of the currently selected plane
75 selected : { h: 0, s: -10, l: +20 },
76
77 // Changes added to the color of planes that have stale position info
78 stale : { h: 0, s: -10, l: +30 },
79
80 // Changes added to the color of planes that have positions from mlat
81 mlat : { h: 0, s: -10, l: -10 }
82 };
83
84 // For a monochrome display try this:
85 // ColorByAlt = {
86 // unknown : { h: 0, s: 0, l: 40 },
87 // ground : { h: 0, s: 0, l: 30 },
88 // air : { h: [ { alt: 0, val: 0 } ], s: 0, l: 50 },
89 // selected : { h: 0, s: 0, l: +30 },
90 // stale : { h: 0, s: 0, l: +30 },
91 // mlat : { h: 0, s: 0, l: -10 }
92 // };
93
94 // Outline color for aircraft icons with an ADS-B position
95 OutlineADSBColor = '#000000';
96
97 // Outline color for aircraft icons with a mlat position
98 OutlineMlatColor = '#4040FF';
99
100 SiteCircles = true; // true to show circles (only shown if the center marker is shown)
101 // In nautical miles or km (depending settings value 'Metric')
102 SiteCirclesDistances = new Array(100,150,200);
103
104 // Show the clocks at the top of the righthand pane? You can disable the clocks if you want here
105 ShowClocks = true;
106
107 // Controls page title, righthand pane when nothing is selected
108 PageName = "DUMP1090";
109
110 // Show country flags by ICAO addresses?
111 ShowFlags = true;
112
113 // Path to country flags (can be a relative or absolute URL; include a trailing /)
114 FlagPath = "flags-tiny/";
115
116 // Set to true to enable the ChartBundle base layers (US coverage only)
117 ChartBundleLayers = true;
118
119 // Provide a Bing Maps API key here to enable the Bing imagery layer.
120 // You can obtain a free key (with usage limits) at
121 // https://www.bingmapsportal.com/ (you need a "basic key")
122 //
123 // Be sure to quote your key:
124 // BingMapsAPIKey = "your key here";
125 //
126 BingMapsAPIKey = null;
127
128 // Provide a Mapzen API key here to enable the Mapzen vector tile layer.
129 // You can obtain a free key at https://mapzen.com/developers/
130 // (you need a "vector tiles" key)
131 //
132 // Be sure to quote your key:
133 // MapzenAPIKey = "your key here";
134 //
135 MapzenAPIKey = null;