Merge pull request #49 from mutability/show-stale-planes
Change the marker color for aircraft with no recent updates.
This commit is contained in:
commit
7b2e4ca67d
|
@ -20,6 +20,7 @@ CONST_ZOOMLVL = 5;
|
||||||
// The default marker color
|
// The default marker color
|
||||||
MarkerColor = "rgb(127, 127, 127)";
|
MarkerColor = "rgb(127, 127, 127)";
|
||||||
SelectedColor = "rgb(225, 225, 225)";
|
SelectedColor = "rgb(225, 225, 225)";
|
||||||
|
StaleColor = "rgb(190, 190, 190)";
|
||||||
|
|
||||||
// -- Site Settings ---------------------------------------
|
// -- Site Settings ---------------------------------------
|
||||||
SiteShow = false; // true or false
|
SiteShow = false; // true or false
|
||||||
|
|
|
@ -53,11 +53,17 @@ var planeObject = {
|
||||||
|
|
||||||
// Should create an icon for us to use on the map...
|
// Should create an icon for us to use on the map...
|
||||||
funcGetIcon : function() {
|
funcGetIcon : function() {
|
||||||
|
this.markerColor = MarkerColor;
|
||||||
// If this marker is selected we should make it lighter than the rest.
|
// If this marker is selected we should make it lighter than the rest.
|
||||||
if (this.is_selected == true) {
|
if (this.is_selected == true) {
|
||||||
this.markerColor = SelectedColor;
|
this.markerColor = SelectedColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we have not seen a recent update, change color
|
||||||
|
if (this.seen > 15) {
|
||||||
|
this.markerColor = StaleColor;
|
||||||
|
}
|
||||||
|
|
||||||
// Plane marker
|
// Plane marker
|
||||||
var baseSvg = {
|
var baseSvg = {
|
||||||
planeData : "M 1.9565564,41.694305 C 1.7174505,40.497708 1.6419973,38.448747 " +
|
planeData : "M 1.9565564,41.694305 C 1.7174505,40.497708 1.6419973,38.448747 " +
|
||||||
|
|
Loading…
Reference in a new issue