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
|
|
|
|
|
|
|
|
var results = positioned.findWithinRange( me._controller['query_range']()*2 ,"fix");
|
2013-12-28 15:18:35 +00:00
|
|
|
var numNum = 0;
|
2013-12-01 12:29:22 +00:00
|
|
|
foreach(result; results) {
|
2013-12-28 15:18:35 +00:00
|
|
|
# Skip airport navaids (real thing makes distinction between high/low altitude fixes)
|
|
|
|
if(string.match(result.id,"*[^0-9]")) {
|
|
|
|
me.push(result);
|
|
|
|
numNum = numNum + 1;
|
|
|
|
}
|
2013-12-01 12:29:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
me.notifyView();
|
2013-12-28 15:18:35 +00:00
|
|
|
}
|