1
0
Fork 0
fgdata/Nasal/canvas/map/airplane-symbol.model

13 lines
354 B
Text
Raw Normal View History

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();
}