COLOR Airplanes fordump1090-Mutability and Flightaware


#1

Hello

EN //
here modify for Color Airplanes
depending on the flight altitude
##############
DE //

Modifikation für farbige Flugzeuge
Abhänig der Flughöhe

This dont work with old version

cp planeObject.js planeObject.js_orig

search

PlaneObject.prototype.updateIcon = function() {
var col = MarkerColor;

    // If this marker is selected we should make it lighter than the rest.
    if (this.selected)
            col = SelectedColor;

    // If we have not seen a recent position update, change color
    if (this.seen_pos > 15)
            col = StaleColor;

    // If the squawk code is one of the international emergency codes,
    // match the info window alert color.
    if (this.squawk in SpecialSquawks)
            col = SpecialSquawks[this.squawk].markerColor;

----->

    var weight = this.selected ? 2 : 1;
    var rotation = (this.track === null ? 0 : this.track);

and modify to

PlaneObject.prototype.updateIcon = function() {
var col = MarkerColor;

    // If this marker is selected we should make it lighter than the rest.
    if (this.selected)
            col = SelectedColor;

    // If we have not seen a recent position update, change color
    if (this.seen_pos > 15)
            col = StaleColor;

    // If the squawk code is one of the international emergency codes,
    // match the info window alert color.
    if (this.squawk in SpecialSquawks)
            col = SpecialSquawks[this.squawk].markerColor;

//BEGIN COLORING OF AIRCRAFT BY ALTITUDE
if( this.altitude >= 0 && this.altitude < 3000 ) {
col = “rgb(255,0,0)”;
}
if( this.altitude >= 3000 && this.altitude < 5000 ) {
col = “rgb(255,165,0)”;
}
if( this.altitude >= 5000 && this.altitude < 10000 ) {
col = “rgb(127,255,212)”;
}
if( this.altitude >= 10000 && this.altitude < 20000 ) {
col = “rgb(255,20,147)”;
}
if( this.altitude >= 20000 && this.altitude < 30000 ) {
col = “rgb(0,255,0)”;
}
if( this.altitude >= 30000 && this.altitude < 50000 ) {
//this.markerColor = “rgb(255,255,0)”;
col = “rgb(139,0,139)”;
}
//END OLORING OF AIRCRAFT BY ALTITUDE

    var weight = this.selected ? 2 : 1;
    var rotation = (this.track === null ? 0 : this.track);

and save . reload your Browser.

HAPPY COLOR FLIGHTING


#2

Hello

EN //
here modify for Color Airplanes
depending on the flight altitude
##############
DE //

Modifikation für farbige Flugzeuge
Abhänig der Flughöhe

This dont work with old version

cp planeObject.js planeObject.js_orig

search

PlaneObject.prototype.updateIcon = function() {
var col = MarkerColor;

    // If this marker is selected we should make it lighter than the rest.
    if (this.selected)
            col = SelectedColor;

    // If we have not seen a recent position update, change color
    if (this.seen_pos > 15)
            col = StaleColor;

    // If the squawk code is one of the international emergency codes,
    // match the info window alert color.
    if (this.squawk in SpecialSquawks)
            col = SpecialSquawks[this.squawk].markerColor;

----->

    var weight = this.selected ? 2 : 1;
    var rotation = (this.track === null ? 0 : this.track);

and modify to

PlaneObject.prototype.updateIcon = function() {
var col = MarkerColor;

    // If this marker is selected we should make it lighter than the rest.
    if (this.selected)
            col = SelectedColor;

    // If we have not seen a recent position update, change color
    if (this.seen_pos > 15)
            col = StaleColor;

    // If the squawk code is one of the international emergency codes,
    // match the info window alert color.
    if (this.squawk in SpecialSquawks)
            col = SpecialSquawks[this.squawk].markerColor;

//BEGIN COLORING OF AIRCRAFT BY ALTITUDE
if( this.altitude >= 0 && this.altitude < 3000 ) {
col = “rgb(255,0,0)”;
}
if( this.altitude >= 3000 && this.altitude < 5000 ) {
col = “rgb(255,165,0)”;
}
if( this.altitude >= 5000 && this.altitude < 10000 ) {
col = “rgb(127,255,212)”;
}
if( this.altitude >= 10000 && this.altitude < 20000 ) {
col = “rgb(255,20,147)”;
}
if( this.altitude >= 20000 && this.altitude < 30000 ) {
col = “rgb(0,255,0)”;
}
if( this.altitude >= 30000 && this.altitude < 50000 ) {
//this.markerColor = “rgb(255,255,0)”;
col = “rgb(139,0,139)”;
}
//END OLORING OF AIRCRAFT BY ALTITUDE

    var weight = this.selected ? 2 : 1;
    var rotation = (this.track === null ? 0 : this.track);

and save . reload your Browser.

HAPPY COLOR FLIGHTING


#3

Hello

my modify can be donwload
*( control by Oliver “Oli” - Maintainer of dump1090 Mutability)

Old Dump1090 Version

http://flightradar.meet-us.net/dump1090.7z

Nex Dump1090-Mutability Version

http://flightradar.meet-us.net/dum1090-mutability.7z

Nils


#4

I posted something similar here: post156972.html#p156972
That’ll be the basis for what goes in the next release of dump1090-mutability.


#5

Hey obj

i dont see you post.

i test and checkl this , with Oliver maintainer dump1090

than i have mistake in my script. maybe come this in new update.


#6

That’s me.

I’m sorry if my email somehow gave you the impression that I’d be merging your changes - I won’t be doing that, I was just helping you find the right place to make the changes yourself.


#7

M)))) hehe OLI. tztztztz