diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-07-05 15:38:50 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-07-24 12:10:45 +0200 |
commit | 4dff51719b27988fe4672bd4022d305b6e7d9816 (patch) | |
tree | 3763369ac44f060ca03a4e008431e4725580c137 /src/mbgl/tile | |
parent | 541712aac7433856811e2c24dff583333aabd3c8 (diff) | |
download | qtlocation-mapboxgl-4dff51719b27988fe4672bd4022d305b6e7d9816.tar.gz |
[core] add algorithm for computing masks for raster tiles
Diffstat (limited to 'src/mbgl/tile')
-rw-r--r-- | src/mbgl/tile/tile_id_io.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mbgl/tile/tile_id_io.cpp b/src/mbgl/tile/tile_id_io.cpp index f6adbf183f..d8be6b93d6 100644 --- a/src/mbgl/tile/tile_id_io.cpp +++ b/src/mbgl/tile/tile_id_io.cpp @@ -6,6 +6,8 @@ namespace mbgl { ::std::ostream& operator<<(::std::ostream& os, const CanonicalTileID& rhs) { + // Uncomment this to create code instead of shorthands. + // return os << "CanonicalTileID{ " << uint32_t(rhs.z) << ", " << rhs.x << ", " << rhs.y << " }"; return os << uint32_t(rhs.z) << "/" << rhs.x << "/" << rhs.y; } @@ -26,6 +28,9 @@ std::string toString(const OverscaledTileID& rhs) { } // namespace util ::std::ostream& operator<<(::std::ostream& os, const UnwrappedTileID& rhs) { + // Uncomment this to create code instead of shorthands. + // return os << "UnwrappedTileID{ " << uint32_t(rhs.wrap) << ", { " << uint32_t(rhs.canonical.z) + // << ", " << rhs.canonical.x << ", " << rhs.canonical.y << " } }"; return os << rhs.canonical << (rhs.wrap >= 0 ? "+" : "") << rhs.wrap; } |