From 75438d5595208da219080f6efc8d04984613f8b2 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 2 Oct 2014 22:50:09 +0100 Subject: [PATCH] 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 = {