Found a way to change Aircraft icons

Want to post something that doesn't quite fit into the other forums? This is the place for that.
Aardvark
Posts: 30
Joined: Mon Jun 17, 2013 11:16 pm

Re: Found a way to change Aircraft icons

Post by Aardvark » Wed Jul 13, 2016 8:31 pm

How do you get those nice labels on your aircraft? I stumbled across a VRS site that was displaying those gray rounded boxes. I cannot find an example of setting that up.

nitro999
Posts: 87
Joined: Tue Feb 09, 2016 7:32 pm
Location: UK
Contact:

Re: Found a way to change Aircraft icons

Post by nitro999 » Wed Jul 13, 2016 8:38 pm

To get the information showing under the aircraft icon on the map:

Menu -> Options -> Aircraft

Then under the 'Aircraft Display' section you can choose how many lines of info you want to show (e.g. registration, aircraft type, etc)
Image

Aardvark
Posts: 30
Joined: Mon Jun 17, 2013 11:16 pm

Re: Found a way to change Aircraft icons

Post by Aardvark » Wed Jul 13, 2016 8:41 pm

I already have four lines for labels on my aircraft. What I am curious about is the image the OP posted that shows the labels contained in gray boxes with rounded edges. Looks very nice and I came across a site doing that.

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

Re: Found a way to change Aircraft icons

Post by agw » Thu Jul 14, 2016 9:46 pm

The grey box thing can be achieved by setting VRS.globalOptions.aircraftMarkerSuppressTextOnImages to true. However you will need to add some styling for the box, the default box comes out centered under the anchor point with no rounded corner. Also your style has to force a margin if you don't want the box centered directly under the icon.

This script should get you close:

Code: Select all

<style type="text/css">
    .markerLabel {
        border-radius: 3px;
        padding: 3px;
        margin-top: 5px !important;
        margin-left: 15px !important;
    }
</style>
<script type="text/javascript">
    if(VRS && VRS.globalOptions) {
        VRS.globalOptions.aircraftMarkerShowAltitudeStalk = false;
        VRS.globalOptions.aircraftMarkerAllowAltitudeStalk = false;
        VRS.globalOptions.aircraftMarkerSuppressTextOnImages = true;
    }
</script>

Aardvark
Posts: 30
Joined: Mon Jun 17, 2013 11:16 pm

Re: Found a way to change Aircraft icons

Post by Aardvark » Fri Jul 15, 2016 9:16 pm

I'll test that in the custom content and see how it works. Thanks!

Post Reply