forked from organicmaps/organicmaps
make less texts disappear on map drag
This commit is contained in:
parent
46b10b9905
commit
3bc2ee99d3
1 changed files with 9 additions and 1 deletions
|
@ -21,7 +21,7 @@ namespace graphics
|
|||
return false;
|
||||
|
||||
/// for the composite elements, collected in OverlayRenderer to replace the part elements
|
||||
return l->priority() >= r->priority();
|
||||
return l->priority() > r->priority();
|
||||
}
|
||||
|
||||
m2::RectD const OverlayElementTraits::LimitRect(shared_ptr<OverlayElement> const & elem)
|
||||
|
@ -223,6 +223,14 @@ namespace graphics
|
|||
if (*m_isIntersect)
|
||||
return;
|
||||
|
||||
//LOG(LINFO, (r->m_userInfo.IsValid(), r->m_userInfo.m_mwmID, l->m_userInfo.m_mwmID, r->m_userInfo.m_offset, l->m_userInfo.m_offset ) );
|
||||
|
||||
if (m_oe->m_userInfo.IsValid() && e->m_userInfo.IsValid()
|
||||
&& (m_oe->m_userInfo.m_offset == e->m_userInfo.m_offset)
|
||||
&& (m_oe->m_userInfo.m_mwmID == e->m_userInfo.m_mwmID))
|
||||
return;
|
||||
|
||||
|
||||
vector<m2::AnyRectD> const & lr = m_oe->boundRects();
|
||||
vector<m2::AnyRectD> const & rr = e->boundRects();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue