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
|
2013-12-28 15:18:35 +00:00
|
|
|
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
|
|
|
}
|