mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-07 12:05:14 +01:00
Fixed KMZ maps bounds computation
This commit is contained in:
parent
a4a54101a3
commit
ccfb748404
@ -157,7 +157,7 @@ void KMZMap::computeBounds()
|
|||||||
_adjust = 0;
|
_adjust = 0;
|
||||||
_bounds = QVector<Bounds>(_tiles.count());
|
_bounds = QVector<Bounds>(_tiles.count());
|
||||||
for (int i = 0; i < _tiles.count(); i++) {
|
for (int i = 0; i < _tiles.count(); i++) {
|
||||||
QRectF xy(offsets.at(i), _tiles.at(i).bounds().size());
|
QRectF xy(offsets.at(i), _tiles.at(i).bounds().size() / _mapRatio);
|
||||||
_bounds[i] = Bounds(_tiles.at(i).bbox(), xy);
|
_bounds[i] = Bounds(_tiles.at(i).bbox(), xy);
|
||||||
_adjust = qMin(qMin(_tiles.at(i).bounds().left(),
|
_adjust = qMin(qMin(_tiles.at(i).bounds().left(),
|
||||||
_tiles.at(i).bounds().top()), _adjust);
|
_tiles.at(i).bounds().top()), _adjust);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user