2014-04-29 02:26:32 +00:00
|
|
|
# See: http://wiki.flightgear.org/MapStructure
|
|
|
|
# Class things:
|
|
|
|
var name = 'APS';
|
|
|
|
var parents = [SymbolLayer.Controller];
|
|
|
|
var __self__ = caller(0)[0];
|
|
|
|
SymbolLayer.Controller.add(name, __self__);
|
|
|
|
SymbolLayer.add(name, {
|
2014-05-25 18:11:13 +00:00
|
|
|
parents: [SingleSymbolLayer],
|
2014-04-29 02:26:32 +00:00
|
|
|
type: name, # Symbol type
|
|
|
|
df_controller: __self__, # controller to use by default -- this one
|
2014-05-25 18:11:13 +00:00
|
|
|
df_style: {},
|
2014-04-29 02:26:32 +00:00
|
|
|
});
|
2014-05-25 18:11:13 +00:00
|
|
|
# N.B.: if used, this SymbolLayer should be updated every frame
|
|
|
|
# by the Map Controller, or as often as the position is changed.
|
2014-04-29 02:26:32 +00:00
|
|
|
var new = func(layer) {
|
|
|
|
return {
|
|
|
|
parents: [__self__],
|
2014-05-25 18:11:13 +00:00
|
|
|
_model: layer.map.getPosCoord(),
|
2014-04-29 02:26:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
var del = func;
|
|
|
|
|