summaryrefslogtreecommitdiff
path: root/src/mbgl/util/tile_cover.cpp
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-05-28 16:44:28 -0400
committerAnsis Brammanis <brammanis@gmail.com>2015-05-28 19:17:07 -0400
commit1e044a175cbb714182709b9929fe4a74bfa42322 (patch)
tree18f488db5b3909fbd35d458d73c273c2b4ff0772 /src/mbgl/util/tile_cover.cpp
parent8962442b1b838445efaf8dc12003225facac2a06 (diff)
downloadqtlocation-mapboxgl-1e044a175cbb714182709b9929fe4a74bfa42322.tar.gz
Reparse tiles when zoom level > source maxzoom
so that layout property functions are applied correctly and so that label placement is redone js: https://github.com/mapbox/mapbox-gl-js/pull/1005 and https://github.com/mapbox/mapbox-gl-js/commit/440bc02505eb66f198a3d98708ddc3d9453f453f
Diffstat (limited to 'src/mbgl/util/tile_cover.cpp')
-rw-r--r--src/mbgl/util/tile_cover.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/tile_cover.cpp b/src/mbgl/util/tile_cover.cpp
index 5185e78d92..f410b8e813 100644
--- a/src/mbgl/util/tile_cover.cpp
+++ b/src/mbgl/util/tile_cover.cpp
@@ -65,7 +65,7 @@ static void scanTriangle(const mbgl::vec2<double> a, const mbgl::vec2<double> b,
if (bc.dy) scanSpans(ca, bc, ymin, ymax, scanLine);
}
-std::forward_list<TileID> tileCover(int8_t z, const mbgl::box &bounds) {
+std::forward_list<TileID> tileCover(int8_t z, const mbgl::box &bounds, int8_t actualZ) {
int32_t tiles = 1 << z;
std::forward_list<mbgl::TileID> t;
@@ -73,7 +73,7 @@ std::forward_list<TileID> tileCover(int8_t z, const mbgl::box &bounds) {
int32_t x;
if (y >= 0 && y <= tiles) {
for (x = x0; x < x1; x++) {
- t.emplace_front(z, x, y);
+ t.emplace_front(actualZ, x, y, z);
}
}
};