mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-07-08 16:24:28 +02:00
Fixed (centred) waypoint position markers
Fixed waypoint "radius" computation
This commit is contained in:
@ -46,8 +46,7 @@ bool POI::loadGPXFile(const QString &fileName)
|
||||
|
||||
if (gpx.loadFile(fileName)) {
|
||||
for (int i = 0; i < gpx.waypoints().size(); i++)
|
||||
_data.append(Waypoint(
|
||||
ll2mercator(gpx.waypoints().at(i).coordinates()),
|
||||
_data.append(Waypoint(gpx.waypoints().at(i).coordinates(),
|
||||
gpx.waypoints().at(i).description()));
|
||||
index.end = _data.size() - 1;
|
||||
|
||||
@ -108,7 +107,7 @@ bool POI::loadCSVFile(const QString &fileName)
|
||||
}
|
||||
QByteArray ba = list[2].trimmed();
|
||||
|
||||
_data.append(Waypoint(ll2mercator(QPointF(lon, lat)),
|
||||
_data.append(Waypoint(QPointF(lon, lat),
|
||||
QString::fromUtf8(ba.data(), ba.size())));
|
||||
ln++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user