mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
committed by
GitHub
parent
e24d25ff47
commit
47cb560633
@@ -147,9 +147,10 @@ FixElevation::postProcess(RideFile *ride, DataProcessorConfig *config=0, QString
|
||||
if (latLngCollection.length() != 0) {
|
||||
latLngCollection.append(',');
|
||||
}
|
||||
latLngCollection.append(QString::number(point->lat));
|
||||
// these values need extended precision or place marker jumps around.
|
||||
latLngCollection.append(QString::number(point->lat,'g',10));
|
||||
latLngCollection.append(',');
|
||||
latLngCollection.append(QString::number(point->lon));
|
||||
latLngCollection.append(QString::number(point->lon,'g',10));
|
||||
if (pointCount == 400) {
|
||||
elevationPoints = elevationPoints + FetchElevationDataFromMapQuest(latLngCollection);
|
||||
latLngCollection = "";
|
||||
|
||||
@@ -139,8 +139,9 @@ void LiveMapWebPageWindow::ergFileSelected(ErgFile* f)
|
||||
if (f && f->filename != "" )
|
||||
{
|
||||
setIsBlank(false);
|
||||
QString startingLat = QString::number(((f->Points)[0]).lat);
|
||||
QString startingLon = QString::number(((f->Points)[0]).lon);
|
||||
// these values need extended precision or place marker jumps around.
|
||||
QString startingLat = QString::number(((f->Points)[0]).lat, 'g', 10);
|
||||
QString startingLon = QString::number(((f->Points)[0]).lon, 'g', 10);
|
||||
if (startingLat == "0" && startingLon == "0")
|
||||
{
|
||||
markerIsVisible = false;
|
||||
|
||||
@@ -622,8 +622,9 @@ void LiveMapWidget::initLiveMap(Context* context)
|
||||
void LiveMapWidget::plotNewLatLng(double dLat, double dLon)
|
||||
{
|
||||
QString code = "";
|
||||
QString sLat = QString::number(dLat);
|
||||
QString sLon = QString::number(dLon);
|
||||
// these values need extended precision or place marker jumps around.
|
||||
QString sLat = QString::number(dLat, 'g', 10);
|
||||
QString sLon = QString::number(dLon, 'g', 10);
|
||||
QString sMapZoom = QString::number(m_Zoom);
|
||||
|
||||
if (!routeInitialized)
|
||||
|
||||
Reference in New Issue
Block a user