From f49991376249b2e769ec7e802f397c81dc14c873 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 6 Oct 2013 17:28:58 +0100 Subject: [PATCH] Map shows all airports when zoomed in. Bug 1135, or part of it. (Ignore the short-runway culling when zoomed in) --- src/GUI/MapWidget.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) 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