diff options
author | Michal Klocek <michal.klocek@digia.com> | 2011-11-02 15:10:03 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-03 07:30:43 +0100 |
commit | 076bd15beadcdfb4729084bffb40a23a2d1e9658 (patch) | |
tree | a71727725270b5c70849b771aefa119c64fe0c96 /src/location/mapsgl/map2d | |
parent | 1c6fcf7bfd3c626f5141951adb228e5d919cf4e1 (diff) | |
download | qtlocation-076bd15beadcdfb4729084bffb40a23a2d1e9658.tar.gz |
fix coordinateToScreenPosition inaccuracy in 2d projection
Change-Id: Ib6056dcabdcd5dd7f1f2ee48278f6e2d5c8d742c
Reviewed-by: David Laing <david.laing@nokia.com>
Diffstat (limited to 'src/location/mapsgl/map2d')
-rw-r--r-- | src/location/mapsgl/map2d/map2d_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/mapsgl/map2d/map2d_p.cpp b/src/location/mapsgl/map2d/map2d_p.cpp index 86383ca1..00cf4b11 100644 --- a/src/location/mapsgl/map2d/map2d_p.cpp +++ b/src/location/mapsgl/map2d/map2d_p.cpp @@ -168,7 +168,7 @@ Map2DPrivate::Map2DPrivate(Map *parent, TileCache *cache, int maxZoom, int tileS tileSize_(tileSize), baseHeight_(100.0) { - sideLength_ = pow(2.0, 1.0 * maxZoom_); + sideLength_ = pow(2.0, 1.0 * maxZoom_) * tileSize; setProjection(QSharedPointer<Projection>(new Projection2D(baseHeight_, sideLength_))); screenPoly_.resize(4); |