diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-18 14:21:59 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-10-19 08:11:41 +0300 |
commit | ef62b78fce06ad93de87e9a6a6775ae33fff214d (patch) | |
tree | 19f655f4389fad40ec520d9f7a8af0d8cb5144ec /test/tile | |
parent | 2188d68b6c09dec676c294223aa7d1a4c24c85f0 (diff) | |
download | qtlocation-mapboxgl-ef62b78fce06ad93de87e9a6a6775ae33fff214d.tar.gz |
[core] TileCoordinate::fromLatLng no longer depens on TransformState
Diffstat (limited to 'test/tile')
-rw-r--r-- | test/tile/tile_coordinate.test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tile/tile_coordinate.test.cpp b/test/tile/tile_coordinate.test.cpp index f2337c1e7f..740a03894d 100644 --- a/test/tile/tile_coordinate.test.cpp +++ b/test/tile/tile_coordinate.test.cpp @@ -41,7 +41,7 @@ TEST(TileCoordinate, FromLatLng) { for (const auto& pair : edges) { const auto& latLng = pair.first; const auto& screenCoordinate = pair.second; - const auto base = TileCoordinate::fromLatLng(transform.getState(), 0, latLng); + const auto base = TileCoordinate::fromLatLng(0, latLng); // 16 is the maximum zoom level where we actually compute placements. for (uint8_t integerZoom = 0; integerZoom <= 16; ++integerZoom) { @@ -52,7 +52,7 @@ TEST(TileCoordinate, FromLatLng) { latLng.latitude == 0 ? 0.5 : latLng.latitude == -util::LATITUDE_MAX ? 1.0 : 0, }; - const auto fromLatLng = TileCoordinate::fromLatLng(transform.getState(), zoom, latLng); + const auto fromLatLng = TileCoordinate::fromLatLng(zoom, latLng); ASSERT_DOUBLE_EQ(fromLatLng.z, zoom); ASSERT_DOUBLE_EQ(fromLatLng.p.x, tilePoint.x * maxTilesPerAxis); ASSERT_NEAR(fromLatLng.p.y, tilePoint.y * maxTilesPerAxis, 1.0e-7); |