[core] OverscaledTileID::isChildOf should check wrap values.

Fixes issue #13478
This commit is contained in:
Chris Loer
2018-11-29 12:50:10 -08:00
committed by Chris Loer
parent 0151061947
commit f87ef3f72a
3 changed files with 10 additions and 2 deletions

View File

@@ -181,7 +181,8 @@ inline uint32_t OverscaledTileID::overscaleFactor() const {
}
inline bool OverscaledTileID::isChildOf(const OverscaledTileID& rhs) const {
return overscaledZ > rhs.overscaledZ &&
return wrap == rhs.wrap &&
overscaledZ > rhs.overscaledZ &&
(canonical == rhs.canonical || canonical.isChildOf(rhs.canonical));
}