diff options
author | David Laing <david.laing@nokia.com> | 2012-02-01 15:16:28 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-02 07:34:20 +0100 |
commit | 8981b5a525849718c1ba601da2ad7478c15b5702 (patch) | |
tree | bd39b6baab25a1f19f4ad1d60ea5497ec86059bb /tests/auto/geotestplugin | |
parent | bbacf2e03133f014cd7edf0bc9110714d00e37f8 (diff) | |
download | qtlocation-8981b5a525849718c1ba601da2ad7478c15b5702.tar.gz |
Cleans up the projection code.
There was no longer any point in providing the
screen <-> 3d scene position functions, which
meant that the projection class was just
doing coordinate <-> mercator conversions and
intepolating coordinates.
The interpolation code was moved out and the
mercator conversions were made static.
We have future changes coming which will allow
people who want different projections to provide
them, so it's not to big a deal to specialize
the class towards the mercator projection.
There were some other small changes made which
make the map actually pay attention to the size
of the tiles and the maximum zoom level as per
the plugin.
Actually enforcing the tilt / bearing / zoom
parameters will appear in a separate commit
before very long.
Change-Id: I31dc39165bde123fbe8e3e2e70e401c5d73932b3
Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'tests/auto/geotestplugin')
-rw-r--r-- | tests/auto/geotestplugin/qgeomappingmanagerengine_test.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/geotestplugin/qgeomappingmanagerengine_test.h b/tests/auto/geotestplugin/qgeomappingmanagerengine_test.h index 844d23fd..4d96e87f 100644 --- a/tests/auto/geotestplugin/qgeomappingmanagerengine_test.h +++ b/tests/auto/geotestplugin/qgeomappingmanagerengine_test.h @@ -100,7 +100,7 @@ public: void init() { - setTileSize(QSize(256, 256)); + setTileSize(256); QList<QGeoMapType> types; types << QGeoMapType(QGeoMapType::StreetMap,tr("Street Map"),tr("Test Street Map"), false, 1); setSupportedMapTypes(types); |