If you would like to have FAA sectional chart (as well as other FAA charts) as the background in dump1090 local web interface here are a few simple steps to do that:
- Backup your script.js in /usr/share/dump1090/public_html folder (a better idea is to backup the whole publick_html folder)
- Open the script.js file for editing (you will need sudo permission for that)
- Find the
mapTypeIds.push("dark_map");
- Copy and paste the line and modify so it will looks like
mapTypeIds.push("ChartBundle");
- Find the
//Define OSM map type pointing at the OpenStreetMap tile server
GoogleMap.mapTypes.set("OSM", new google.maps.ImageMapType({
getTileUrl: function(coord, zoom) {
return "http://tile.openstreetmap.org/" + zoom + "/" + coord.x + "/" + coord.y + ".png";
},
tileSize: new google.maps.Size(256, 256),
name: "OpenStreetMap",
maxZoom: 18
}));
section
6. Insert the following immediately after above mentioned section:
//Define ChartBundle map type pointing at the OpenStreetMap tile server
// 'sec' can be replaced with sec wac tac enrl enra enrh secgrids wacgrids tacgridsto show different maps
GoogleMap.mapTypes.set("ChartBundle", new google.maps.ImageMapType({
getTileUrl: function(coord, zoom) {
return "http://wms.chartbundle.com/tms/1.0.0/sec/" + zoom + "/" + coord.x + "/" + coord.y + ".png?origin=nw";
},
tileSize: new google.maps.Size(256, 256),
name: "ChartBundle",
maxZoom: 18
}));
- Save the script.js file.
- Open (or reload) the local dump1090 web interface.
- Select ChartBundle from the dropdown box in the upper left corner of the map.
As you may noticed in the comment section the “sec” statement in the link “http://wms.chartbundle.com/tms/1.0.0/sec/” + zoom + “/” + coord.x + “/” + coord.y + “.png?origin=nw”; can be changed to the following:
sec - “Sectional Charts”
tac - “Terminal Area Charts”
wac - “World Aeronautical Charts”
enrl - “IFR Enroute Low Charts”
enra - “IFR Area Charts”
enrh - “IFR Enroute High Charts”
secgrids - “Sectional Charts with Grid”
tacgrids - “Terminal Area Charts with Grid”
wacgrids - “World Aeronautical Charts with Grid”
I will leave it to the java script gurus to figure out how to incorporate all the choices into the dropdown box.
And many thanks to the Cartbundle team at wms.chartbundle.com/charts/tms.html for making their services available.
P.S. If you are using the PiAware version of the dump1090 you may need to consider changing the default airplane marker colors as it is somewhat difficult to spot them on the sectional chart. Something like
MarkerColor = "rgb(51, 255, 51)";
MlatMarkerColor = "rgb(255, 51, 255)";
SelectedColor = "rgb(51, 255, 255)";
in the config.js
