forked from organicmaps/organicmaps
Routing marks invalidation fixed.
This commit is contained in:
parent
162f162427
commit
420995ab73
2 changed files with 5 additions and 2 deletions
|
@ -761,7 +761,9 @@ void FrontendRenderer::AcceptMessage(ref_ptr<Message> message)
|
|||
auto removePredicate = [](drape_ptr<RenderGroup> const & group)
|
||||
{
|
||||
RenderLayer::RenderLayerID id = RenderLayer::GetLayerID(group->GetState());
|
||||
return id == RenderLayer::UserLineID || id == RenderLayer::UserMarkID;
|
||||
return id == RenderLayer::UserLineID ||
|
||||
id == RenderLayer::UserMarkID ||
|
||||
id == RenderLayer::RoutingMarkID;
|
||||
};
|
||||
RemoveRenderGroupsLater(removePredicate);
|
||||
m_forceUpdateUserMarks = true;
|
||||
|
|
|
@ -161,7 +161,8 @@ bool RenderGroup::IsOverlay() const
|
|||
bool RenderGroup::IsUserMark() const
|
||||
{
|
||||
return m_state.GetDepthLayer() == dp::GLState::UserLineLayer ||
|
||||
m_state.GetDepthLayer() == dp::GLState::UserMarkLayer;
|
||||
m_state.GetDepthLayer() == dp::GLState::UserMarkLayer ||
|
||||
m_state.GetDepthLayer() == dp::GLState::RoutingMarkLayer;
|
||||
}
|
||||
|
||||
bool RenderGroup::UpdateCanBeDeletedStatus(bool canBeDeleted, int currentZoom, ref_ptr<dp::OverlayTree> tree)
|
||||
|
|
Loading…
Add table
Reference in a new issue