Debian Codegraph @

Nasal/canvas/map/APS-FG1000.symbol

raw
1 # See: http://wiki.flightgear.org/MapStructure
2 # Class things:
3 var name = 'APS_FG1000';
4 var parents = [SVGSymbol];
5 var __self__ = caller(0)[0];
6 DotSym.makeinstance( name, __self__ );
7
8 var svg_path = "Nasal/canvas/map/Images/genericAirplane.svg";
9 var element_id = "airplane";
10
11 # Rotate with the main aircraft.
12 # Will have to be adapted if intended for use with other aircraft
13 # (but one could simply copy the layer for that).
14 var draw = func {
15 var rot = getprop("/orientation/heading-deg");
16 rot -= me.layer.map.getHdg();
17 me.element.setRotation(rot*D2R);
18 };