summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-01-16 14:50:54 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-01-16 14:50:54 +0100
commitba61ab44af80ff20997a207ef3649081f8561e33 (patch)
treea44e974d5d17a3f150d4aa586350f215fb2277c2 /src
parent9e9640e4ac961e6f52d163cb41ca9d7b26fe84aa (diff)
downloadqtlocation-mapboxgl-ba61ab44af80ff20997a207ef3649081f8561e33.tar.gz
sort tiles high zoom => low zoom level
Diffstat (limited to 'src')
-rw-r--r--src/map/map.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index 4c05b8f3dc..7acede3d4e 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -251,6 +251,11 @@ void map::updateTiles() {
}
return obsolete;
});
+
+ // Sort tiles by zoom level, front to back.
+ tiles.sort([](const tile::ptr& a, const tile::ptr& b) {
+ return a->id.z > b->id.z;
+ });
}
bool map::render() {