forked from organicmaps/organicmaps
DEMO Force using 1 more detailed geometry level
This commit is contained in:
parent
5704100557
commit
5ca67c447f
1 changed files with 10 additions and 0 deletions
|
@ -49,7 +49,12 @@ int GetScaleIndex(SharedLoadInfo const & loadInfo, int scale)
|
|||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
if (scale <= loadInfo.GetScale(i))
|
||||
{
|
||||
++i;
|
||||
if (i == count)
|
||||
i = count - 1;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
@ -88,7 +93,12 @@ int GetScaleIndex(SharedLoadInfo const & loadInfo, int scale,
|
|||
for (int i = 0; i < n; ++i)
|
||||
{
|
||||
if (scale <= loadInfo.GetScale(i))
|
||||
{
|
||||
++i;
|
||||
if (i == n)
|
||||
i = n - 1;
|
||||
return (offsets[i] != kInvalidOffset ? i : -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue