Nasal/canvas/map/airplane-symbol.model
raw| 1 | # WARNING: *.model files will be deprecated, see: http://wiki.flightgear.org/MapStructure |
| 2 | var AirplaneSymbolModel = {}; |
| 3 | AirplaneSymbolModel.new = func make( LayerModel, AirplaneSymbolModel ); |
| 4 | |
| 5 | AirplaneSymbolModel.init = func { |
| 6 | me._view.reset(); # wraps removeAllChildren() ATM |
| 7 | |
| 8 | me.push( { lat: getprop("/position/latitude-deg"), lon : getprop("/position/longitude-deg"), hdg : getprop("/orientation/heading-deg") } ); |
| 9 | |
| 10 | me.notifyView(); |
| 11 | } |
| 12 | |
| 13 |