37c005c222
See the clone at https://gitorious.org/fg/canvas-hackers-fgdata/source/topics/canvas-radar:
27 lines
564 B
Text
27 lines
564 B
Text
# 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, {
|
|
parents: [SymbolLayer],
|
|
type: name, # Symbol type
|
|
df_controller: __self__, # controller to use by default -- this one
|
|
});
|
|
var new = func(layer) {
|
|
layer.searcher._equals = func(a,b) {
|
|
a == b;
|
|
}
|
|
return {
|
|
parents: [__self__],
|
|
map: layer.map,
|
|
};
|
|
};
|
|
var del = func;
|
|
|
|
var searchCmd = func {
|
|
var c = me.map.getPosCoord();
|
|
return [c];
|
|
};
|
|
|