2014-04-28 21:26:32 -05: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 13:11:13 -05:00
|
|
|
parents: [SingleSymbolLayer],
|
2014-04-28 21:26:32 -05:00
|
|
|
type: name, # Symbol type
|
|
|
|
df_controller: __self__, # controller to use by default -- this one
|
2014-05-25 13:11:13 -05:00
|
|
|
df_style: {},
|
2014-04-28 21:26:32 -05:00
|
|
|
});
|
2014-05-25 13:11:13 -05: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-28 21:26:32 -05:00
|
|
|
var new = func(layer) {
|
2015-05-30 20:20:59 +02:00
|
|
|
var __model = layer.map.getPosCoord();
|
|
|
|
#debug.dump(typeof(layer.options));
|
|
|
|
if(layer.options != nil and contains(layer.options, 'model'))
|
|
|
|
__model = layer.options.model;
|
2014-04-28 21:26:32 -05:00
|
|
|
return {
|
|
|
|
parents: [__self__],
|
2015-05-30 20:20:59 +02:00
|
|
|
_model: __model,
|
2014-04-28 21:26:32 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
var del = func;
|
|
|
|
|