diff options
author | Lauren Budorick <lauren@mapbox.com> | 2017-04-19 13:29:31 -0700 |
---|---|---|
committer | Lauren Budorick <lauren@mapbox.com> | 2017-04-24 17:11:01 -0700 |
commit | 17e22b8d598812fc77b07d35cad9d6b8be8f21f4 (patch) | |
tree | 879baabe87302c153afcdb8ad444de1b0265fdc9 | |
parent | 8f359b2befd24e917b469122355705893ac7b374 (diff) | |
download | qtlocation-mapboxgl-17e22b8d598812fc77b07d35cad9d6b8be8f21f4.tar.gz |
Try offsetting camera options for better-defined tile cover
-rw-r--r-- | test/util/tile_cover.test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/util/tile_cover.test.cpp b/test/util/tile_cover.test.cpp index 5a5315e92c..c746e6dab5 100644 --- a/test/util/tile_cover.test.cpp +++ b/test/util/tile_cover.test.cpp @@ -31,12 +31,13 @@ TEST(TileCover, Pitch) { Transform transform; transform.resize({ 512, 512 }); // slightly offset center so that tile order is better defined - transform.setLatLng({ 0.01, -0.01 }); + transform.setLatLng({ 0.1, -0.1 }); transform.setZoom(2); + transform.setAngle(5.0); transform.setPitch(40.0 * M_PI / 180.0); EXPECT_EQ((std::vector<UnwrappedTileID>{ - { 2, 1, 2 }, { 2, 1, 1 }, { 2, 2, 2 }, { 2, 2, 1 }, + { 2, 1, 2 }, { 2, 1, 1 }, { 2, 2, 2 }, { 2, 2, 1 }, { 2, 3, 2 } }), util::tileCover(transform.getState(), 2)); } |