forked from organicmaps/organicmaps
Don't reject path text by depth.
This commit is contained in:
parent
2e1e8e1de2
commit
8542ffe82e
1 changed files with 4 additions and 1 deletions
|
@ -156,7 +156,10 @@ void OverlayTree::InsertHandle(ref_ptr<OverlayHandle> handle,
|
|||
HandleComparator comparator(m_followingMode);
|
||||
for (auto const & info : elements)
|
||||
{
|
||||
bool const rejectByDepth = is3dMode ? posY > info.m_handle->GetPivot(modelView, is3dMode).y : false;
|
||||
bool const pathTextComparation = handle->HasDynamicAttributes() || info.m_handle->HasDynamicAttributes();
|
||||
bool const rejectByDepth = is3dMode ? !pathTextComparation &&
|
||||
posY > info.m_handle->GetPivot(modelView, is3dMode).y
|
||||
: false;
|
||||
bool const rejectByTime = !info.m_handle->IsMinVisibilityTimeUp();
|
||||
if (rejectByDepth || rejectByTime || comparator.IsGreater(info.m_handle, handleToCompare))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue