forked from organicmaps/organicmaps
Fix nodes-type definition (process relations for nodes only if it hasn't native types).
This commit is contained in:
parent
5f236e365d
commit
5162dacaea
1 changed files with 7 additions and 1 deletions
|
@ -251,10 +251,16 @@ protected:
|
|||
// try to get type from relations tags
|
||||
m_typeProcessor.Reset(id, &fValue);
|
||||
|
||||
if (p->name == "node")
|
||||
if (p->name == "node" && !fValue.IsValid())
|
||||
{
|
||||
// additional process of nodes ONLY if there is no native types
|
||||
m_holder.ForEachRelationByNodeCached(id, m_typeProcessor);
|
||||
}
|
||||
else if (p->name == "way")
|
||||
{
|
||||
// always make additional process of ways
|
||||
m_holder.ForEachRelationByWayCached(id, m_typeProcessor);
|
||||
}
|
||||
|
||||
// remove duplicating types
|
||||
sort(fValue.types.begin(), fValue.types.end());
|
||||
|
|
Loading…
Add table
Reference in a new issue