-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.js
166 lines (139 loc) · 6.73 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
// --------------------------------------------------------
//
// This file is to configure the configurable settings.
// Load this file before script.js file at gmap.html.
//
// --------------------------------------------------------
// -- Title Settings --------------------------------------
// Show number of aircraft and/or messages per second in the page title
PlaneCountInTitle = true;
MessageRateInTitle = true;
// -- Output Settings -------------------------------------
// Show metric values
// The Metric setting controls whether metric (m, km, km/h) or
// imperial (ft, NM, knots) units are used in the plane table
// and in the detailed plane info. If ShowOtherUnits is true,
// then the other unit will also be shown in the detailed plane
// info.
Metric = true;
ShowOtherUnits = true;
// -- Map settings ----------------------------------------
// These settings are overridden by any position information
// provided by dump1090 itself. All positions are in decimal
// degrees.
// Default center of the map.
DefaultCenterLat = 52.085624;
DefaultCenterLon = 5.0890591;
// The google maps zoom level, 0 - 16, lower is further out
DefaultZoomLvl = 7;
// Center marker. If dump1090 provides a receiver location,
// that location is used and these settings are ignored.
SiteShow = true; // true to show a center marker
SiteLat = 52.085624; // position of the marker
SiteLon = 5.0890591;
SiteName = "My Radar Site"; // tooltip of the marker
// User Map (KML File)
// Enables KML overlay on map, UserMap must have a value below when "true"
UserMapShow = true; //true to show KML
// KML to show, for example your rangeview.kml:
UserMap = "https://dl.dropboxusercontent.com/u/17865731/dump1090-20150916/rangeview.kml"; // your KML URL (publicly available domain)
// User heatmap (csv File)
// Enables Heatmap on map
HeatmapShow = true; //true to show Heatmap
// heatmap to show:
UserHeatMap = "heatmapdata.csv"// Must be located in /usr/share/dump1090-mutability/html
// Enables file selector to upload a local heatmap.
HeatmapFileSelector = true; //true to show file selector in heatmap panel.
// Extra map types to include. These work for maps with 256x256 tiles where a
// URL can be constructed by simple substition of x/y tile number and zoom level
var ExtraMapTypes = {
'OpenStreetMap' : 'http://tile.openstreetmap.org/{z}/{x}/{y}.png',
// NB: the following generally only cover the US
'Sectional Charts' : 'http://wms.chartbundle.com/tms/1.0.0/sec/{z}/{x}/{y}.png?origin=nw',
'Terminal Charts' : 'http://wms.chartbundle.com/tms/1.0.0/tac/{z}/{x}/{y}.png?origin=nw',
'World Charts' : 'http://wms.chartbundle.com/tms/1.0.0/wac/{z}/{x}/{y}.png?origin=nw',
'IFR Low Charts' : 'http://wms.chartbundle.com/tms/1.0.0/enrl/{z}/{x}/{y}.png?origin=nw',
'IFR Area Charts' : 'http://wms.chartbundle.com/tms/1.0.0/enra/{z}/{x}/{y}.png?origin=nw',
'IFR High Charts' : 'http://wms.chartbundle.com/tms/1.0.0/enrh/{z}/{x}/{y}.png?origin=nw'
};
// -- Marker settings -------------------------------------
// These settings control the coloring of aircraft by altitude.
// All color values are given as Hue (0-359) / Saturation (0-100) / Lightness (0-100)
ColorByAlt = {
// HSL for planes with unknown altitude:
unknown : { h: 0, s: 0, l: 40 },
// HSL for planes that are on the ground:
ground : { h: 120, s: 100, l: 30 },
air : {
// These define altitude-to-hue mappings
// at particular altitudes; the hue
// for intermediate altitudes that lie
// between the provided altitudes is linearly
// interpolated.
//
// Mappings must be provided in increasing
// order of altitude.
//
// Altitudes below the first entry use the
// hue of the first entry; altitudes above
// the last entry use the hue of the last
// entry.
h: [ { alt: 2000, val: 20 }, // orange
{ alt: 10000, val: 140 }, // light green
{ alt: 40000, val: 300 } ], // magenta
s: 85,
l: 50,
},
// Changes added to the color of the currently selected plane
selected : { h: 0, s: -10, l: +20 },
// Changes added to the color of planes that have stale position info
stale : { h: 0, s: -10, l: +30 },
// Changes added to the color of planes that have positions from mlat
mlat : { h: 0, s: -10, l: -10 }
};
// For a monochrome display try this:
// ColorByAlt = {
// unknown : { h: 0, s: 0, l: 40 },
// ground : { h: 0, s: 0, l: 30 },
// air : { h: [ { alt: 0, val: 0 } ], s: 0, l: 50 },
// selected : { h: 0, s: 0, l: +30 },
// stale : { h: 0, s: 0, l: +30 },
// mlat : { h: 0, s: 0, l: -10 }
// };
// -- Display aircraft in color depending on their altitude
ShowAltitudesByColor = true; // true or false
// -- Display aircraft color legend
ShowAircraftColorLegend = true; // true or false
// Number of altitude zones displayed
NumberOfAltitudeZones = 24;
// Maximum altitude in meters.
MaxAltitudeMeters = 12000;
// Maximum altitude in feet.
MaxAltitudeFeet = 36000;
ShowSiteCircles = true; // true to show circles (only shown if the center marker is shown)
ShowSiteCirclesLegend = true ; // true to show circle distance legend
// Circle radius in nautical miles or km (depending settings value 'Metric')
SiteCircle = [
{ distance: 50, strokeweight: 3, color: "black" },
{ distance: 100, strokeweight: 3, color: "OrangeRed" },
{ distance: 150, strokeweight: 3, color: "red" },
{ distance: 200, strokeweight: 3, color: "purple" },
{ distance: 250, strokeweight: 3, color: "green" },
{ distance: 300, strokeweight: 3, color: "DeepSkyBlue" },
{ distance: 350, strokeweight: 3, color: "navy" }
];
// Outline color for aircraft icons with an ADS-B position
OutlineADSBColor = '#000000';
// Outline color for aircraft icons with a mlat position
OutlineMlatColor = '#4040FF';
SiteCircles = false; // true to show circles (only shown if the center marker is shown)
// In nautical miles or km (depending settings value 'Metric')
SiteCirclesDistances = new Array(100,150,200);
// Show the clocks at the top of the righthand pane? You can disable the clocks if you want here
ShowClocks = true;
// Controls page title, righthand pane when nothing is selected
PageName = "DUMP1090";
// Show country flags by ICAO addresses?
ShowFlags = true;
// Path to country flags (can be a relative or absolute URL; include a trailing /)
FlagPath = "flags-tiny/";