Change the marker color for aircraft with no recent updates.
This commit is contained in:
parent
65751ed6e9
commit
75438d5595
2 changed files with 7 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue