From 69532b3c531ffd676c450b595f6636ef2abb192e Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Fri, 2 Jan 2015 22:48:27 +0000 Subject: [PATCH] Center the webmap on the receiver location. Mark config.js as a conffile, so user changes won't get overwritten. --- debian/changelog | 2 ++ debian/dump1090-mutability.conffiles | 1 + public_html/script.js | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 debian/dump1090-mutability.conffiles diff --git a/debian/changelog b/debian/changelog index c9d5ec5..19a3446 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ dump1090-mutability (1.08.2302.14+1mu-7) UNRELEASED; urgency=medium lets dump1090 tolerate occasional USB glitches that make the dongle reset itself. * Fix some of the more glaring pthread bugs. + * Center the webmap on the receiver location. + * Mark config.js as a conffile, so user changes won't get overwritten. -- Oliver Jowett Fri, 02 Jan 2015 22:27:44 +0000 diff --git a/debian/dump1090-mutability.conffiles b/debian/dump1090-mutability.conffiles new file mode 100644 index 0000000..dd0d217 --- /dev/null +++ b/debian/dump1090-mutability.conffiles @@ -0,0 +1 @@ +usr/share/dump1090-mutability/html/config.js diff --git a/public_html/script.js b/public_html/script.js index 1216fb4..2d95fb5 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -60,6 +60,8 @@ function initialize() { SiteShow = true; SiteLat = data.lat; SiteLon = data.lon; + CONST_CENTERLAT = data.lat; + CONST_CENTERLON = data.lon; } Dump1090Version = data.version;