Colour code by altitude

The "to-do" list for Virtual Radar Server is as long as my arm, but if you want to pile more work onto it then this is for you.
Post Reply
egpd1701
Posts: 46
Joined: Fri Nov 08, 2013 3:39 pm

Colour code by altitude

Post by egpd1701 » Mon Nov 21, 2016 5:02 pm

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 :(

agw
Posts: 2146
Joined: Fri Feb 17, 2012 3:20 am

Re: Colour code by altitude

Post by agw » Mon Nov 28, 2016 1:05 am

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.

Post Reply