2014-04-29 02:26:32 +00:00
|
|
|
# WARNING: *.model files will be deprecated, see: http://wiki.flightgear.org/MapStructure
|
2013-12-01 12:29:22 +00:00
|
|
|
var FixModel = {};
|
|
|
|
FixModel.new = func make( LayerModel, FixModel );
|
|
|
|
|
|
|
|
FixModel.init = func {
|
|
|
|
me._view.reset(); # wraps removeAllChildren() ATM
|
|
|
|
|
2014-01-08 20:45:48 +00:00
|
|
|
var results = positioned.findWithinRange( me._controller['query_range']() ,"fix");
|
2013-12-28 15:18:35 +00:00
|
|
|
var numNum = 0;
|
2013-12-01 12:29:22 +00:00
|
|
|
foreach(result; results) {
|
2014-01-08 20:45:48 +00:00
|
|
|
# Skip airport fixes
|
2014-05-25 18:11:13 +00:00
|
|
|
if(string.match(result.id,"*[^0-9]")) { # this may need to be moved to FIX.lcontroller?
|
2013-12-28 15:18:35 +00:00
|
|
|
me.push(result);
|
|
|
|
numNum = numNum + 1;
|
|
|
|
}
|
2013-12-01 12:29:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
me.notifyView();
|
2014-05-25 18:11:13 +00:00
|
|
|
}
|