Page 1 of 1

A couple of Map questions

Posted: Mon Jan 25, 2021 8:48 pm
by Neptuni
Hi,

I’m using the map and nav map overlays, is there a way to round the frequncy on the txt layer so it doesnt show 300.000000 for the frequency (but instead 300.00)?

Next question, the aircraft symbol is not at the correct position, when I’m for instance is on the end of a runway, they symbol is bellow and slightly to the right. Im using a 1280x995 (0,0,1280,995)pixel map and I have positioned the symbol at 640, 498

Best regards,

Mikael

Re: A couple of Map questions

Posted: Mon Jan 25, 2021 9:57 pm
by Keith Baxter
Neptuni wrote: Mon Jan 25, 2021 8:48 pm Hi,

I’m using the map and nav map overlays, is there a way to round the frequncy on the txt layer so it doesnt show 300.000000 for the frequency (but instead 300.00)?

Next question, the aircraft symbol is not at the correct position, when I’m for instance is on the end of a runway, they symbol is bellow and slightly to the right. Im using a 1280x995 (0,0,1280,995)pixel map and I have positioned the symbol at 640, 498

Best regards,

Mikael
Hi Mikael

Use string format to format the frequency. <string.format("%.0f",300.00000)> the 0f = no decimal places. 2f = two decimal places

The "image" will be positioned to the top left corner. So if the image size is 60x60 then position it 610,468.
Note: take into account the magvar and rotate the image accordingly else it will "crab"


Keith

Re: A couple of Map questions

Posted: Mon Jan 25, 2021 11:03 pm
by Neptuni
Thanks for the reply!

I know how to format numbers, but where do I apply it?
I just added the nav_img and nav_txt layer and set ”FREQENCY” as a parameter for the text layer.

I noticed also that I had to subtract half of image size as you said, so now Im closer (not perfect yet thou). Thanks for the advice to incorperate the magvar, the orientation will be better (a few deegres of now)

/Mikael

Re: A couple of Map questions

Posted: Tue Jan 26, 2021 1:52 pm
by Ralph
I'm not sure what you mean with applying. Did you check out this example in our wiki?
http://siminnovations.com/wiki/index.ph ... formatting