Hi Jenny - well lifted ... almost
A few points, the two examples I posted use slightly different techniques for the map wind arrows - talking of which ....
Magnetic Deviation ... the sooner they use satnav and True North the better !!!!!
My background was the 'official' Airport Approach document, and as you can see in the NZDA example Mag Dec at that time was 19 deg E, you now have it as 21.1 deg E
This means the compass graphic is 2 deg out and unless you've changed the value in the code the direction draphics will be slightly out too !!!
Did you know ..... runway numbers are the Magnetic approach bearings rounded to 10s and the end zero dropped.
Thus runway 22 (to land on) is 'pointing' roughly 220 deg. Magnetic .....
This also means every so often all runways are renumbered due to Magnetic Deviation shift over time. There are a few exceptions near polar regions (Northern Canada, Alaska) where the runways number with regard to True North due to the incredible Mag variations they experience.
JennyLeez wrote:...
I have 16 arrows in red, green and amber but I am guessing there may be more.
There are less !!!
In the NZDA example I created some php code to rotate and crop 3 graphics (North versions of green, orange, red) - this can now be acheived by CSS3. There is also a seperate 'Calm' graphic.
Please remove / mod the second link, it won't work because it's addressing a single session tmp file.
The format to 'post' for NZDA is
Code: Select all
http://www.beteljuice.co.uk/betel_cumulus/getitNZDA.php?source=http://yoursite/realtime.txt
You've done VERY well to lift all (well most) of the OOD code and graphics, as you've noticed it uses <IFrame> and two sets of code, this is because trying to run all the code on 'one' page ground the browser to a halt
Dumping the wind compass / speed indicator or redesigning it in CSS3
should clarify / neaten things up considerably.
If you wish to continue with code you've lifted I will zip up the rarrow.php and the graphics it uses, and create a new 21.1 deg compass background (If I can remember how I did it, and still have the original pastiche !!!)
EDIT: You are also missing the Nix tube graphics ...