Page 1 of 1

Colour code by altitude

Posted: Mon Nov 21, 2016 5:02 pm
by egpd1701
Just thought of an nicety (don't think its been asked for before, but sorry if it has, I couldn't find it)

Can we get the colour of the aircraft svg's to be coded by altitude?

I'm trying to work on the code to do that, but its a bit of a hatchet job from the dump1090 one and its not working :(

Re: Colour code by altitude

Posted: Mon Nov 28, 2016 1:05 am
by agw
Not yet :) At the moment the colour is specified by a function in one of the objects somewhere (vrsAircraftPlotter probably), to customise that you'd need to replace the function in the object's prototype. I'll be adding a globalOption for a callback that you can supply to do your own handling of SVG fill colours in a later preview.