2014-04-29 02:26:32 +00:00
|
|
|
# WARNING: *.model files will be deprecated, see: http://wiki.flightgear.org/MapStructure
|
2013-12-28 15:18:35 +00:00
|
|
|
var AirplaneSymbolModel = {};
|
|
|
|
AirplaneSymbolModel.new = func make( LayerModel, AirplaneSymbolModel );
|
|
|
|
|
|
|
|
AirplaneSymbolModel.init = func {
|
|
|
|
me._view.reset(); # wraps removeAllChildren() ATM
|
|
|
|
|
|
|
|
me.push( { lat: getprop("/position/latitude-deg"), lon : getprop("/position/longitude-deg"), hdg : getprop("/orientation/heading-deg") } );
|
|
|
|
|
|
|
|
me.notifyView();
|
|
|
|
}
|
|
|
|
|
|
|
|
|