diff --git a/src/Train/VideoWindow.cpp b/src/Train/VideoWindow.cpp index 3187661e22..0445feb87c 100644 --- a/src/Train/VideoWindow.cpp +++ b/src/Train/VideoWindow.cpp @@ -362,6 +362,9 @@ void VideoWindow::telemetryUpdate(RealtimeData rtd) double dLon = rtd.getLongitude(); if (dLat && dLon) liveMapWidget->plotNewLatLng(dLat, dLon); + + // show/hide depending on Location data presence + if (context->currentErgFile() && context->currentErgFile()->gpi.HasLocation()) liveMapWidget->show(); else liveMapWidget->hide(); } }