Map shows all airports when zoomed in.
Bug 1135, or part of it. (Ignore the short-runway culling when zoomed in)
This commit is contained in:
parent
a45e3d1d07
commit
f499913762
1 changed files with 10 additions and 0 deletions
|
@ -930,6 +930,11 @@ public:
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
void showAll()
|
||||
{
|
||||
_hardRunwaysOnly = false;
|
||||
}
|
||||
|
||||
private:
|
||||
bool _heliports;
|
||||
|
@ -940,6 +945,11 @@ private:
|
|||
void MapWidget::drawAirports()
|
||||
{
|
||||
MapAirportFilter af(_root);
|
||||
if (_cachedZoom <= SHOW_DETAIL2_ZOOM) {
|
||||
// show all airports when zoomed in sufficently
|
||||
af.showAll();
|
||||
}
|
||||
|
||||
bool partial = false;
|
||||
FGPositionedList apts = FGPositioned::findWithinRangePartial(_projectionCenter, _drawRangeNm, &af, partial);
|
||||
for (unsigned int i=0; i<apts.size(); ++i) {
|
||||
|
|
Loading…
Add table
Reference in a new issue