forked from organicmaps/organicmaps
Fix rect covering for tiling drawing. Take into account index cell depth.
This commit is contained in:
parent
e77a003040
commit
2875ffb1f1
1 changed files with 6 additions and 1 deletions
|
@ -209,8 +209,13 @@ IntervalsT const & CoveringGetter::Get(int scale)
|
|||
break;
|
||||
|
||||
case 1:
|
||||
AppendLowerLevels(GetRectIdAsIs(m_rect), cellDepth, m_res[ind]);
|
||||
{
|
||||
RectId id = GetRectIdAsIs(m_rect);
|
||||
while (id.Level() >= cellDepth)
|
||||
id = id.Parent();
|
||||
AppendLowerLevels(id, cellDepth, m_res[ind]);
|
||||
break;
|
||||
}
|
||||
|
||||
case 2:
|
||||
m_res[ind].push_back(IntervalsT::value_type(0, static_cast<int64_t>((1ULL << 63) - 1)));
|
||||
|
|
Loading…
Add table
Reference in a new issue