1
0
Fork 0

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:
James Turner 2013-10-06 17:28:58 +01:00
parent a45e3d1d07
commit f499913762

View file

@ -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) {