diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2015-05-28 16:44:28 -0400 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2015-05-28 19:17:07 -0400 |
commit | 1e044a175cbb714182709b9929fe4a74bfa42322 (patch) | |
tree | 18f488db5b3909fbd35d458d73c273c2b4ff0772 /src/mbgl/util/tile_cover.cpp | |
parent | 8962442b1b838445efaf8dc12003225facac2a06 (diff) | |
download | qtlocation-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.cpp | 4 |
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); } } }; |