From: James Turner Date: Sun, 6 Oct 2013 16:28:58 +0000 (+0100) Subject: Map shows all airports when zoomed in. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f49991376249b2e769ec7e802f397c81dc14c873;p=flightgear.git Map shows all airports when zoomed in. Bug 1135, or part of it. (Ignore the short-runway culling when zoomed in) --- diff --git a/src/GUI/MapWidget.cxx b/src/GUI/MapWidget.cxx index c35c1e6fe..137b83bf6 100644 --- a/src/GUI/MapWidget.cxx +++ b/src/GUI/MapWidget.cxx @@ -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