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 <mail@mail.com>
This commit is contained in:
peret2000
2021-02-13 14:37:01 +01:00
committed by GitHub
parent cdb117486a
commit 980c99cfae

View File

@@ -588,8 +588,9 @@ void LiveMapWidget::initLiveMap(Context* context)
}
else
{
QString sMapZoom = QString::number(m_Zoom);
QString js = ("<div><script type=\"text/javascript\">initMap("
+ startingLat + "," + startingLon + ",16);"
+ startingLat + "," + startingLon + "," + sMapZoom + ");"
"showMyMarker(" + startingLat + "," + startingLon + ");</script></div>\n");
routeLatLngs = "[";
QString code = "";