Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ EXTRACFLAGS=-DHTMLPATH=\"$(SHAREDIR)\"
endif

CPPFLAGS+=-DMODES_DUMP1090_VERSION=\"$(DUMP1090_VERSION)\"
CFLAGS+=-O2 -g -Wall -Werror -W
CFLAGS+=-O2 -g -Wall -Werror -W -Wno-format-truncation
LIBS=-lpthread -lm
LIBS_RTL=`pkg-config --libs librtlsdr libusb-1.0`
CC=gcc
Expand Down
9 changes: 8 additions & 1 deletion public_html/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ SiteName = "My Radar Site"; // tooltip of the marker
// 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://github.com/tedsluis/dump1090/raw/master/exampledata/radar.kml"; // your KML URL (publicly available domain)
//
// Google Maps JS API caches KML files for quite a long time,
// so if you generate your rangeview.kml often - you have to cheat :)
// To make Google Maps think that the KML file is new, we have to serve
// the file via PHP script that will add the date to the filename.
//
// rangeview_cheater.php script is in this Git
UserMap = "https://cma.pl/rangeview_cheater.php?"+(new Date()).getTime(); // your KML URL (MUST BE publicly available domain as Google will access this file)

// User heatmap (csv File)
// Enables Heatmap on map
Expand Down
5 changes: 5 additions & 0 deletions public_html/rangeview_cheater.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
?php
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="rangeview.kml"');
readfile('radar.kml'); // Real Rangeview Generated KML FILE
?>