2013-05-26 22:34:38 +02:00
|
|
|
// --------------------------------------------------------
|
2013-05-24 04:15:37 +02:00
|
|
|
//
|
2013-05-25 10:56:32 +02:00
|
|
|
// This file is to configure the configurable settings.
|
|
|
|
// Load this file before script.js file at gmap.html.
|
2013-05-24 04:15:37 +02:00
|
|
|
//
|
2013-05-26 22:34:38 +02:00
|
|
|
// --------------------------------------------------------
|
2013-05-24 04:15:37 +02:00
|
|
|
|
2015-02-20 11:42:29 +01:00
|
|
|
// -- Title Settings --------------------------------------
|
|
|
|
// Show number of aircraft and/or messages per second in the page title
|
2015-02-22 12:51:58 +01:00
|
|
|
PlaneCountInTitle = true;
|
|
|
|
MessageRateInTitle = false;
|
2015-02-20 11:42:29 +01:00
|
|
|
|
2013-05-28 11:15:18 +02:00
|
|
|
// -- Output Settings -------------------------------------
|
|
|
|
// Show metric values
|
2015-02-22 02:22:05 +01:00
|
|
|
// 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 = false;
|
|
|
|
ShowOtherUnits = true;
|
2013-05-28 11:15:18 +02:00
|
|
|
|
2013-05-26 22:34:38 +02:00
|
|
|
// -- Map settings ----------------------------------------
|
2015-01-07 19:41:38 +01:00
|
|
|
// These settings are overridden by any position information
|
2015-01-22 15:33:42 +01:00
|
|
|
// provided by dump1090 itself. All positions are in decimal
|
|
|
|
// degrees.
|
|
|
|
|
|
|
|
// Default center of the map.
|
|
|
|
DefaultCenterLat = 45.0;
|
|
|
|
DefaultCenterLon = 9.0;
|
2013-05-24 04:15:37 +02:00
|
|
|
// The google maps zoom level, 0 - 16, lower is further out
|
2015-01-22 15:33:42 +01:00
|
|
|
DefaultZoomLvl = 7;
|
|
|
|
|
2015-02-22 13:27:01 +01:00
|
|
|
// Center marker. If dump1090 provides a receiver location,
|
|
|
|
// that location is used and these settings are ignored.
|
|
|
|
|
2015-01-22 15:33:42 +01:00
|
|
|
SiteShow = false; // true to show a center marker
|
|
|
|
SiteLat = 45.0; // position of the marker
|
|
|
|
SiteLon = 9.0;
|
|
|
|
SiteName = "My Radar Site"; // tooltip of the marker
|
|
|
|
|
2013-05-26 22:34:38 +02:00
|
|
|
// -- Marker settings -------------------------------------
|
2015-02-22 13:27:01 +01:00
|
|
|
|
|
|
|
// 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
|
2015-10-26 13:30:21 +01:00
|
|
|
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 }
|
2015-02-22 13:27:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// 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 },
|
2015-10-27 00:09:26 +01:00
|
|
|
// stale : { h: 0, s: 0, l: +30 },
|
2015-10-26 13:30:21 +01:00
|
|
|
// mlat : { h: 0, s: 0, l: -10 }
|
2015-02-22 13:27:01 +01:00
|
|
|
// };
|
2013-05-26 22:34:38 +02:00
|
|
|
|
2015-10-26 13:30:21 +01:00
|
|
|
// Outline color for aircraft icons with an ADS-B position
|
|
|
|
OutlineADSBColor = '#000000';
|
|
|
|
|
|
|
|
// Outline color for aircraft icons with a mlat position
|
|
|
|
OutlineMlatColor = '#4040FF';
|
2013-05-26 22:34:38 +02:00
|
|
|
|
2015-01-22 15:33:42 +01:00
|
|
|
SiteCircles = true; // true to show circles (only shown if the center marker is shown)
|
2013-05-30 11:31:41 +02:00
|
|
|
// In nautical miles or km (depending settings value 'Metric')
|
|
|
|
SiteCirclesDistances = new Array(100,150,200);
|
2013-05-30 11:22:52 +02:00
|
|
|
|
2015-01-22 15:33:42 +01:00
|
|
|
// Show the clocks at the top of the righthand pane? You can disable the clocks if you want here
|
2015-01-07 19:41:38 +01:00
|
|
|
ShowClocks = true;
|
2015-01-22 15:33:42 +01:00
|
|
|
|
|
|
|
// Controls page title, righthand pane when nothing is selected
|
|
|
|
PageName = "DUMP1090";
|
2015-08-22 02:38:38 +02:00
|
|
|
|
2015-09-01 13:19:23 +02:00
|
|
|
// Show country flags by ICAO addresses?
|
|
|
|
ShowFlags = true;
|
2015-08-30 18:16:40 +02:00
|
|
|
|
2015-09-01 13:19:23 +02:00
|
|
|
// Path to country flags (can be a relative or absolute URL; include a trailing /)
|
|
|
|
FlagPath = "flags-tiny/";
|
2016-07-02 22:12:31 +02:00
|
|
|
|
|
|
|
// Provide a Bing Maps API key here to enable the Bing imagery layer.
|
|
|
|
BingMapsAPIKey = null;
|