[hamradio-commits] [dump1090] 362/389: Change the marker color for aircraft with no recent updates.

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch master
in repository dump1090.

commit 75438d5595208da219080f6efc8d04984613f8b2
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Thu Oct 2 22:50:09 2014 +0100

    Change the marker color for aircraft with no recent updates.
---
 public_html/config.js      | 1 +
 public_html/planeObject.js | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/public_html/config.js b/public_html/config.js
index c4d7ecd..f7d8e2e 100644
--- a/public_html/config.js
+++ b/public_html/config.js
@@ -20,6 +20,7 @@ CONST_ZOOMLVL   = 5;
 // The default marker color
 MarkerColor	  = "rgb(127, 127, 127)";
 SelectedColor = "rgb(225, 225, 225)";
+StaleColor = "rgb(190, 190, 190)";
 
 // -- Site Settings ---------------------------------------
 SiteShow    = false; // true or false
diff --git a/public_html/planeObject.js b/public_html/planeObject.js
index dfb0130..98153fd 100644
--- a/public_html/planeObject.js
+++ b/public_html/planeObject.js
@@ -53,10 +53,16 @@ var planeObject = {
 
 	// Should create an icon for us to use on the map...
 	funcGetIcon	: function() {
+			this.markerColor = MarkerColor;
 			// If this marker is selected we should make it lighter than the rest.
 			if (this.is_selected == true) {
 				this.markerColor = SelectedColor;
 			}
+
+			// If we have not seen a recent update, change color
+			if (this.seen > 15) {
+				this.markerColor = StaleColor;
+			}
 			
 			// Plane marker
             var baseSvg = {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list