diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-07-03 15:20:46 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-02-09 13:58:43 +0000 |
commit | 5fd9681a3563e2346c722bcd779e2b16cd4ac9fd (patch) | |
tree | 0d85e40638232803e25c0b42f0715e7d363a07ad /tests/auto/auto.pro | |
parent | f5f23c4279b454e2465e7f9835b04cc80332f3a0 (diff) | |
download | qtlocation-5fd9681a3563e2346c722bcd779e2b16cd4ac9fd.tar.gz |
Refactor prefetching tiles
Current implementation uses same QGeoCameraTiles object
to calculate visible tiles and tiles which should be
prefetched. This is semi optimal since frustum intersection
algorithm uses bunch of different parameters.
Simplify the logic and use separate objects, this way
values in both cases are cached and calculation is done when required.
This is important since prefetchData can be called
anytime from map's API.
Remove textured tiles from scene when clearCache called,
this will force redownload of all the tiles.
Add new unit test qgeotiledmap and move prefetch test
due to refactoring.
Change-Id: I6a906df405f212436cdd35ac76f95b559e6b7aae
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/auto/auto.pro')
-rw-r--r-- | tests/auto/auto.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index dd95998e..86abefd6 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -50,6 +50,7 @@ qtHaveModule(location) { qgeoroutingmanager \ qgeoroutingmanagerplugins \ qgeoserviceprovider \ + qgeotiledmap \ qgeotilespec \ qgeoroutexmlparser \ qgeomapcontroller \ |