Skip to content

Commit

Permalink
addition to dark map ac label
Browse files Browse the repository at this point in the history
  • Loading branch information
alkissack committed Sep 30, 2023
1 parent 9ee22fd commit da83f7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion public_html/planeObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,14 @@ PlaneObject.prototype.updateMarker = function (moved) {

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

0 comments on commit da83f7e

Please sign in to comment.