diff options
Diffstat (limited to 'src/mbgl/util/tile_cover.cpp')
-rw-r--r-- | src/mbgl/util/tile_cover.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mbgl/util/tile_cover.cpp b/src/mbgl/util/tile_cover.cpp index 5487fb269c..c6bf7d362a 100644 --- a/src/mbgl/util/tile_cover.cpp +++ b/src/mbgl/util/tile_cover.cpp @@ -147,13 +147,12 @@ std::vector<UnwrappedTileID> tileCover(const LatLngBounds& bounds_, int32_t z) { { std::max(bounds_.south(), -util::LATITUDE_MAX), bounds_.west() }, { std::min(bounds_.north(), util::LATITUDE_MAX), bounds_.east() }); - const TransformState state; return tileCover( - TileCoordinate::fromLatLng(state, z, bounds.northwest()).p, - TileCoordinate::fromLatLng(state, z, bounds.northeast()).p, - TileCoordinate::fromLatLng(state, z, bounds.southeast()).p, - TileCoordinate::fromLatLng(state, z, bounds.southwest()).p, - TileCoordinate::fromLatLng(state, z, bounds.center()).p, + TileCoordinate::fromLatLng(z, bounds.northwest()).p, + TileCoordinate::fromLatLng(z, bounds.northeast()).p, + TileCoordinate::fromLatLng(z, bounds.southeast()).p, + TileCoordinate::fromLatLng(z, bounds.southwest()).p, + TileCoordinate::fromLatLng(z, bounds.center()).p, z); } |