From 980c99cfae708cb98c52c0f8a2f1e180e6ffb6d7 Mon Sep 17 00:00:00 2001 From: peret2000 <19463568+peret2000@users.noreply.github.com> Date: Sat, 13 Feb 2021 14:37:01 +0100 Subject: [PATCH] LiveMapWidget uses configured zoom (#3823) I noticed zoom configured in xml file is ignored, and code is always starting with a value of 16 for thee zoom of thee live map widget. This change uses field of the xml; it was already being parsed but not used, so using it is simple and straightforward Co-authored-by: Peret --- src/Train/MeterWidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Train/MeterWidget.cpp b/src/Train/MeterWidget.cpp index 22637870d..92a31da04 100644 --- a/src/Train/MeterWidget.cpp +++ b/src/Train/MeterWidget.cpp @@ -588,8 +588,9 @@ void LiveMapWidget::initLiveMap(Context* context) } else { + QString sMapZoom = QString::number(m_Zoom); QString js = ("
\n"); routeLatLngs = "["; QString code = "";