summaryrefslogtreecommitdiffstats
path: root/src/location/maps/qgeomappingmanager.cpp
diff options
context:
space:
mode:
authorDavid Laing <david.laing@nokia.com>2012-02-01 15:16:28 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-02 07:34:20 +0100
commit8981b5a525849718c1ba601da2ad7478c15b5702 (patch)
treebd39b6baab25a1f19f4ad1d60ea5497ec86059bb /src/location/maps/qgeomappingmanager.cpp
parentbbacf2e03133f014cd7edf0bc9110714d00e37f8 (diff)
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 'src/location/maps/qgeomappingmanager.cpp')
-rw-r--r--src/location/maps/qgeomappingmanager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/location/maps/qgeomappingmanager.cpp b/src/location/maps/qgeomappingmanager.cpp
index 0c638c42..1be31632 100644
--- a/src/location/maps/qgeomappingmanager.cpp
+++ b/src/location/maps/qgeomappingmanager.cpp
@@ -318,6 +318,16 @@ QList<QGeoMapType> QGeoMappingManager::supportedMapTypes() const
//}
/*!
+ Returns the length of the edge of the tiles returned by this manager.
+
+ The tiles are assumed to be square.
+*/
+int QGeoMappingManager::tileSize() const
+{
+ return d_ptr->engine->tileSize();
+}
+
+/*!
Returns the minimum zoom level supported by this manager.
Larger values of the zoom level correspond to more detailed views of the