mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
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:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user