diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-07-19 10:49:51 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2018-07-19 11:43:52 +0300 |
commit | 9f382cb9e28666730f1c62e84748407299a673d0 (patch) | |
tree | e219af0c68b03a86f5af2753c61221e9b7ed0e79 | |
parent | c70ec9068d8a920bd731352a2441703d24e9e5ae (diff) | |
download | qtlocation-mapboxgl-9f382cb9e28666730f1c62e84748407299a673d0.tar.gz |
[core] Missing 'wrap' serialization of OverscaledTileID
-rw-r--r-- | src/mbgl/tile/tile_id_io.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/tile/tile_id_io.cpp b/src/mbgl/tile/tile_id_io.cpp index d8be6b93d6..360de131eb 100644 --- a/src/mbgl/tile/tile_id_io.cpp +++ b/src/mbgl/tile/tile_id_io.cpp @@ -18,12 +18,12 @@ std::string toString(const CanonicalTileID& rhs) { } // namespace util ::std::ostream& operator<<(::std::ostream& os, const OverscaledTileID& rhs) { - return os << rhs.canonical << "=>" << uint32_t(rhs.overscaledZ); + return os << rhs.canonical << "=>" << uint32_t(rhs.overscaledZ) << (rhs.wrap >= 0 ? "+" : "") << rhs.wrap; } namespace util { std::string toString(const OverscaledTileID& rhs) { - return util::toString(rhs.canonical) + "=>" + util::toString(rhs.overscaledZ); + return util::toString(rhs.canonical) + "=>" + util::toString(rhs.overscaledZ) + (rhs.wrap >= 0 ? "+" : "") + util::toString(rhs.wrap); } } // namespace util |