Skip to content

Commit

Permalink
dark map tweek
Browse files Browse the repository at this point in the history
  • Loading branch information
alkissack committed Oct 10, 2023
1 parent 09573bd commit 822ca10
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions public_html/planeObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,10 @@ PlaneObject.prototype.getMarkerColor = function () {

// --------------------------- AKISSACK mono colour Ref: AK9C Start
if (ShowMyPreferences && ShowSimpleColours) {
var myColour = IsDarkMap ? "#0000AA" : "#333399";
var myColour = IsDarkMap ? "#0000FF" : "#333399";
if (this.is_interesting) {
myColour = IsDarkMap ? "#FF0000" : "#993333";
}
//console.log("myColour "+ myColour);
return myColour;
} else {
// --------------------------- AKISSACK mono colour Ref: AK9C ends
Expand Down Expand Up @@ -855,14 +854,12 @@ PlaneObject.prototype.updateMarker = function (moved) {

if (IsDarkMap) {
// LINE ONE
if (this.registration) {
labelText = labelText + this.registration;
if (this.flight) {
labelText = labelText + this.flight;
} else {
if (this.flight) {labelText = labelText + this.flight};
if (this.registration) {labelText = labelText + this.registration};
}
labelText = labelText + " [";
labelText = labelText + (this.squawk ? this.squawk : "No Squawk ");
labelText = labelText + "]";
labelText = labelText + " [" + (this.squawk ? this.squawk : "No Squawk ") + "]";
if (this.selected && !SelectedAllPlanes) {
this.labelColour = "#ffff00";
} else this.labelColour = "#ffffff";
Expand Down

0 comments on commit 822ca10

Please sign in to comment.