Aircraft Label Backgrounds

Are you having trouble getting Virtual Radar Server installed and running? If so then this is the place to ask about it.
EGPE3
Posts: 1
Joined: Sat Jul 01, 2017 9:26 am

Aircraft Label Backgrounds

Postby EGPE3 » Sat Jul 01, 2017 9:32 am

This isn't a problem as such, just something I'd like to understand!

I have only recently discovered VirtualRadar and have installed it on two systems I have running, one on Windows 10 and one on Linux. The browser page produced by the Windows 10 server has aircraft labels in a white font with no background, while the Linux server produces aircraft labels with a very useful grey background. I can't work out how to control this behaviour, but I'd really like them to be the same on both systems! Is this possible, or is it just a "feature" of the two different systems?

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

Re: Aircraft Label Backgrounds

Postby agw » Sun Jul 16, 2017 9:05 pm

The Windows version is how I intended it to look. When an aircraft marker is shown the site sends a request to VRS for an aircraft marker that's been rotated so-many degrees and with text overlaid on top of it. VRS uses .NET features to draw the text onto the marker image before sending it back to the site to display. Those text-on-images features have not been fully implemented in mono, specifically there's no anti-aliasing, and there are also some issues with libcairo (which some mono deployments use to handle graphics operations).

So - under Linux the website only asks VRS for an aircraft marker without text. It then draws the text itself using the labelmarker library for Google Maps.

You can tell the Windows version of VRS to use labelmarker by installing the custom content plugin and then using that to configure an option (see http://www.virtualradarserver.co.uk/Documentation/CustomContent/ChangeSettings.aspx, the line you need to add after the "// ADD YOUR CONTENT AFTER THIS LINE" line is:

Code: Select all

VRS.globalOptions.aircraftMarkerSuppressTextOnImages = true;


However, the next version of VRS introduces SVG aircraft markers. These markers are drawn by the browser without any work being done by the server and they should look the same regardless of whether the server is running under Windows or Linux.

The preview version of VRS has most of the SVG stuff there if you want to give it a try.


Return to “Installation Problems”

Who is online

Users browsing this forum: No registered users and 1 guest