diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-01-16 14:50:54 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-01-16 14:50:54 +0100 |
commit | ba61ab44af80ff20997a207ef3649081f8561e33 (patch) | |
tree | a44e974d5d17a3f150d4aa586350f215fb2277c2 /src | |
parent | 9e9640e4ac961e6f52d163cb41ca9d7b26fe84aa (diff) | |
download | qtlocation-mapboxgl-ba61ab44af80ff20997a207ef3649081f8561e33.tar.gz |
sort tiles high zoom => low zoom level
Diffstat (limited to 'src')
-rw-r--r-- | src/map/map.cpp | 5 |
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() { |