diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-19 14:21:02 +0200 |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-19 14:21:02 +0200 |
commit | 3d5e823bfc7865d8fc9904981695179757a1c52b (patch) | |
tree | 52bfaaef43d3165dadc900b4538a4c1c25639418 | |
parent | 55611181d60bb04d67c1629229cbb8415356774a (diff) |
Preload the tiles for the zoomed out version of the map.
This eats more network, but helps to avoid the impression that the
magnifying glass does not work.
-rw-r--r-- | lightmaps/lightmaps.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lightmaps/lightmaps.cpp b/lightmaps/lightmaps.cpp index 804bee2..bc9798c 100644 --- a/lightmaps/lightmaps.cpp +++ b/lightmaps/lightmaps.cpp @@ -255,6 +255,7 @@ public: m_normalMap->latitude = lat; m_normalMap->longitude = lng; m_normalMap->invalidate(); + m_largeMap->invalidate(); } public slots: @@ -286,6 +287,9 @@ protected: m_normalMap->width = width(); m_normalMap->height = height(); m_normalMap->invalidate(); + m_largeMap->width = m_normalMap->width * 2; + m_largeMap->height = m_normalMap->height * 2; + m_largeMap->invalidate(); } void paintEvent(QPaintEvent *event) { |